:root {
  --bg: #09090b;
  --panel: #13131a;
  --line: #23232f;
  --text: #e8e8ed;
  --muted: #8b8b9e;
  --purple: #a855f7;
  --blue: #7c3aed;
  --gold: #a855f7;
  --gold-2: #c084fc;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --card: #16161e;
  --radius: 16px;
  --header: 64px;
  --accent: #a855f7;
  --clay: #c084fc;
  --aqua: #a855f7;
  --display: "Syne", Manrope, ui-sans-serif, system-ui, sans-serif;
  --body: Manrope, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0 }
html, body { min-height: 100% }
html { scroll-behavior: smooth; color-scheme: dark }

body {
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(168, 85, 247, .07), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(124, 58, 237, .05), transparent 48%),
    radial-gradient(700px 400px at 70% 100%, rgba(168, 85, 247, .04), transparent 50%),
    var(--bg);
  overflow-x: hidden;
}

h1, h2, .page-title, .display, .console-kicker {
  font-family: var(--display);
  letter-spacing: -.03em;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #3a4a44 transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; background: transparent }
*::-webkit-scrollbar-track { background: transparent }
*::-webkit-scrollbar-thumb {
  background: #3a4a44;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: #4d635a; background-clip: padding-box }

body::before { display: none; }

a { color: inherit }
img { max-width: 100% }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer }

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  height: var(--header);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.2%;
  position: relative;
  z-index: 20;
  background: var(--bg);
  backdrop-filter: none;
}

.logo {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1.4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: none;
}

.logo > span {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.logo .sj {
  font-style: normal;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--text);
}

.logo-text {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.btn, .login {
  color: #061316;
  text-decoration: none;
  padding: 12px 27px;
  border-radius: 28px;
  border: 1px solid var(--accent);
  background: var(--accent);
  transition: .25s;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.btn:hover, .login:hover {
  background: #c084fc;
  color: #061316;
  box-shadow: none;
}

.btn-primary, .send {
  border: 0;
  color: #061316;
  font-weight: 700;
  background: var(--accent);
  box-shadow: none;
}

.btn-primary:hover, .send:hover {
  transform: none;
  background: #c084fc;
  box-shadow: none;
}

.btn:disabled, .send:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost { padding: 10px 16px; border-radius: 16px; font-size: 14px }
.btn-small { padding: 8px 14px; border-radius: 14px; font-size: 13px }
.btn-ok { background: linear-gradient(110deg, #1ea36d, #3ee0a2); border: 0; box-shadow: none }
.btn-bad { background: rgba(255, 107, 138, .12); border-color: rgba(255, 107, 138, .4) }

.credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, .4);
  background: rgba(32, 28, 16, .45);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.credits-chip:hover {
  border-color: rgba(212, 175, 55, .7);
  box-shadow: 0 0 18px rgba(212, 175, 55, .18);
}
.bal-plus {
  color: var(--gold-2);
  font-weight: 800;
  font-size: 14px;
}
.bal-minus {
  color: var(--bad);
  font-weight: 800;
  font-size: 14px;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 24px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 23px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
  box-shadow: none;
}

.bolt {
  font-size: 22px;
  color: var(--accent);
}

h1, .hero-title {
  margin-top: 28px;
  font-size: clamp(58px, 8vw, 108px);
  line-height: .98;
  letter-spacing: -5px;
  font-weight: 800;
  background: linear-gradient(100deg, #963cff 15%, #625cff 53%, #4386ff 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1.page-title {
  margin-top: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.6px;
  font-weight: 700;
  background: none;
  color: var(--text);
  -webkit-background-clip: unset;
  background-clip: unset;
}

.subtitle {
  margin: 28px auto 0;
  max-width: 720px;
  color: #aaa9bd;
  font-size: 21px;
  line-height: 1.55;
}

.submit-box {
  max-width: 1060px;
  margin: 58px auto 0;
  min-height: 124px;
  padding: 12px;
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(133, 64, 255, .65);
  border-radius: 20px;
  background: rgba(7, 7, 23, .68);
  box-shadow: 0 0 55px rgba(82, 33, 255, .10), inset 0 0 30px rgba(255, 255, 255, .015);
}

.submit-box .url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  text-align: left;
  min-width: 0;
}

.submit-box .url input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 20px;
  color: var(--text);
}

.submit-box .url input::placeholder { color: #aaa9ba }

.link-icon { font-size: 31px; color: #ddd; flex: 0 0 auto }

.engine {
  width: 220px;
  margin: 8px 0;
  border: 0;
  border-radius: 12px;
  background: rgba(18, 17, 40, .85);
  color: #fff;
  font-size: 18px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.engine-btn {
  width: 100%;
  height: 100%;
  min-height: 92px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.engine-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #121228;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  z-index: 5;
}

.engine.open .engine-menu { display: block }

.engine-menu button {
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  text-align: left;
}

.engine-menu button:hover { background: rgba(139, 53, 255, .18) }

.google { font-size: 22px; font-weight: 800; letter-spacing: -.5px }
.google span:nth-child(1) { color: #4285f4 }
.google span:nth-child(2) { color: #ea4335 }
.google span:nth-child(3) { color: #fbbc05 }
.google span:nth-child(4) { color: #34a853 }
.google span:nth-child(5) { color: #4285f4 }
.google span:nth-child(6) { color: #ea4335 }

.yandex-mark { color: #ff2f2f; font-weight: 800 }

.send {
  width: 240px;
  border-radius: 13px;
  margin: 8px 0 8px 12px;
  font-size: 19px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 88px 0 80px;
  text-align: left;
}

.feature {
  display: flex;
  gap: 21px;
  padding: 10px 38px;
  border-right: 1px solid rgba(255, 255, 255, .10);
}

.feature:last-child { border-right: 0 }

.icon {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 38, 255, .25), rgba(20, 15, 49, .75));
  font-size: 30px;
}

.feature:nth-child(2) .icon {
  background: radial-gradient(circle, rgba(32, 107, 255, .24), rgba(12, 21, 49, .75));
}

.feature h3 { font-size: 18px; margin: 7px 0 }
.feature p { color: #9c9bad; line-height: 1.5; font-size: 14px }

.section {
  position: relative;
  z-index: 1;
  padding: 20px 0 90px;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1.4px;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 42px;
  max-width: 640px;
  line-height: 1.6;
}

.grid-3, .grid-4 {
  display: grid;
  gap: 18px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr) }
.grid-4 { grid-template-columns: repeat(4, 1fr) }

.card {
  background: var(--card);
  border: 1px solid rgba(133, 64, 255, .35);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 0 40px rgba(82, 33, 255, .06);
}

.card.featured {
  border-color: rgba(139, 53, 255, .8);
  box-shadow: 0 0 50px rgba(107, 127, 106, .14);
  transform: translateY(-6px);
}

.price {
  font-size: 34px;
  font-weight: 800;
  margin: 10px 0 6px;
  background: linear-gradient(100deg, #963cff, #4386ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted) }
.tiny { font-size: 13px; color: var(--muted) }

.page {
  position: relative;
  z-index: 1;
  padding: 42px 0 90px;
}

.admin-page .card {
  border: 1px solid rgba(212, 175, 55, .22);
  background: rgba(7, 7, 23, .72);
}
.admin-page h2 { font-size: 20px; margin-bottom: 12px }

.admin-page {
  display: grid;
  gap: 18px;
  justify-items: center;
}
.admin-page .index-console {
  width: min(1080px, 100%);
  margin-bottom: 0;
}
#admin-work {
  display: grid;
  gap: 18px;
  justify-items: center;
  width: 100%;
}
.admin-page .stats {
  margin: 0;
}
.admin-page .stat {
  border-color: rgba(212, 175, 55, .22);
  background: rgba(18, 17, 40, .85);
  padding: 16px 18px;
}
.admin-page .stat b {
  font-size: 26px;
  color: var(--gold-2);
}

.admin-shell .admin-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.2%;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(3, 3, 19, .86);
  position: relative;
  z-index: 20;
}
.admin-shell .admin-header .logo span {
  font-size: 18px;
  letter-spacing: 0;
  color: var(--gold-2);
  font-weight: 700;
}
.admin-shell .admin-header .logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
#admin-miss {
  color: var(--muted);
  text-align: center;
  padding: 80px 0;
}
#admin-login {
  width: min(420px, 100%);
}
#admin-login .stack { gap: 14px; padding: 8px 4px 12px }
#admin-work[hidden],
#admin-login[hidden],
#admin-miss[hidden],
#admin-nav[hidden],
#admin-user-box[hidden],
#admin-users-sec[hidden],
#admin-panel[hidden],
#admin-ann[hidden],
#admin-log[hidden],
#admin-live[hidden],
#admin-members[hidden],
#admin-members-list[hidden],
#admin-tasks[hidden],
#admin-signups[hidden],
#admin-topups[hidden],
#admin-earn[hidden] { display: none !important }
#admin-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#admin-panel,
#admin-ann,
#admin-log,
#admin-live,
#admin-members,
#admin-tasks,
#admin-signups,
#admin-topups,
#admin-earn {
  display: grid;
  gap: 18px;
  justify-items: center;
  width: 100%;
}
.admin-page .stats {
  grid-template-columns: repeat(5, 1fr);
}
.admin-page .stat-go {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.admin-page .stat-go:hover {
  border-color: rgba(212, 175, 55, .55);
}
.earn-form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 0 8px;
}
.earn-reset-item {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.earn-reset-item:hover { color: var(--gold-2) }
#earn-credit-kicker { cursor: pointer }
.admin-page .badge-status { text-transform: none }
.admin-users { min-width: 0 }
.user-row { cursor: pointer }
.user-row:hover { background: rgba(255,255,255,.04) }
.user-open {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold-2);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.user-open:hover { text-decoration: underline }
.admin-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 8px 4px 14px;
  color: var(--muted);
  font-size: 13px;
}
.admin-user-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-user-cols .hist-list { margin-top: 8px }
.admin-user-cols .hist-item { padding: 10px 12px }
@media (max-width: 800px) {
  .admin-user-cols { grid-template-columns: 1fr }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 28px;
}

.stat {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(133, 64, 255, .35);
  background: var(--card);
}

.stat b {
  display: block;
  font-size: 32px;
  letter-spacing: -1px;
  margin-top: 6px;
}

label { display: block; font-weight: 600; margin: 0 0 8px }

.field, textarea, select, .text-input {
  width: 100%;
  appearance: none;
  background: #0f1619;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  outline: 0;
  color: var(--text);
  color-scheme: dark;
}

textarea { min-height: 160px; resize: vertical; line-height: 1.5 }

.field:focus, textarea:focus, .text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .18);
}

.form-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px;
}

.checks { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d9d8ea;
  font-size: 14px;
}

.row-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.table-wrap { overflow-x: auto; margin-top: 8px }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th, td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 14px;
}

th { color: var(--muted); font-weight: 600 }

.badge-status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.st-processing, .st-queued { background: rgba(59, 124, 255, .16); color: #9cbcff }
.st-completed, .st-indexed { background: rgba(62, 224, 162, .16); color: #3ee0a2 }
.st-pending { background: rgba(255, 255, 255, .08); color: #c9c8d8 }
.st-failed, .st-error { background: rgba(255, 107, 138, .16); color: #ff6b8a }
.st-approved { background: rgba(62, 224, 162, .16); color: #3ee0a2 }
.st-rejected { background: rgba(255, 107, 138, .16); color: #ff6b8a }

.auth-shell {
  min-height: calc(100vh - var(--header) - 90px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: min(460px, 100%);
  padding: 34px 28px;
}

.auth-card h1 {
  font-size: 36px;
  letter-spacing: -1.5px;
  margin: 0 0 8px;
}

.stack { display: grid; gap: 14px; margin-top: 22px }
.full { width: 100% }

.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  margin: 16px 0 8px;
}

.progress > span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: var(--accent);
}

.toasts {
  position: fixed;
  top: calc(var(--header) + 10px);
  right: 20px;
  bottom: auto;
  z-index: 90;
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast { pointer-events: auto; }

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #121228;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.toast.error { border-color: rgba(255, 107, 138, .5) }
.toast.ok { border-color: rgba(62, 224, 162, .5) }

.empty {
  text-align: center;
  padding: 36px 10px;
  color: var(--muted);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, .07);
  min-height: 90px;
  display: grid;
  place-items: center;
  color: #9291a3;
  font-size: 14px;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
}

.hidden { display: none !important }

.credit-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.credit-form .text-input { width: 88px; padding: 8px 10px }

.steps { counter-reset: step }
.step h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 13px;
  vertical-align: middle;
}

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) }
  .form-grid, .stats, .features { grid-template-columns: 1fr }
  .card.featured { transform: none }
}

@media (max-width: 800px) {
  :root { --header: 76px }
  .site-header { padding: 0 18px }
  .logo { font-size: 24px }
  .logo img { width: 36px; height: 36px; border-radius: 9px }
  .nav-toggle { display: grid; place-items: center }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 14px;
    background: rgba(7, 7, 22, .96);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex }
  .hero { padding-top: 60px }
  .hero-title { letter-spacing: -3px }
  .subtitle { font-size: 17px }
  .submit-box { flex-direction: column; gap: 10px; padding: 10px }
  .url { min-height: 62px; padding: 0 17px }
  .submit-box .url input { font-size: 16px }
  .engine, .send { width: 100%; height: 62px; margin: 0 }
  .engine-btn { min-height: 62px }
  .features { gap: 20px; margin: 65px 0 }
  .feature { border-right: 0; padding: 8px 10px }
  .grid-3, .grid-4 { grid-template-columns: 1fr }
  .wrap { width: min(1180px, calc(100% - 28px)) }
  table { min-width: 560px }
  .hist-item { flex-wrap: wrap; gap: 10px }
  .hist-meta { width: 100%; flex-direction: row; justify-content: space-between; }
}

.auth-card { text-align: center }
.auth-card label, .auth-card .stack > div { text-align: left }
.auth-actions { display: grid; gap: 10px; justify-items: stretch }

.btn.is-on {
  border-color: rgba(212, 175, 55, .7);
  background: rgba(212, 175, 55, .12);
}

.index-block { margin: 0 auto 28px; max-width: 1060px }
.dash-page { display: flex; flex-direction: column; min-height: calc(100vh - var(--header) - 90px) }

.extra-toggle {
  display: block;
  margin: 12px auto 0;
  border: 0;
  background: transparent;
  color: var(--gold-2);
  font-weight: 600;
  font-size: 14px;
}

.extra-slide {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s ease;
}
.extra-slide.open { grid-template-rows: 1fr; margin-top: 4px }
.extra-inner { overflow: hidden; min-height: 0 }
.extra-inner .console-field { margin-bottom: 4px }

.pull-handle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 0 12px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.pull-handle:active { cursor: grabbing }
.pull-knob {
  width: 58px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: none;
}
.pull-handle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold-2);
  border-bottom: 2px solid var(--gold-2);
  transform: rotate(45deg);
  transition: transform .28s ease;
  opacity: .85;
}
.pull-handle.open::after { transform: rotate(225deg) }
.extra-inner { overflow: hidden; min-height: 0 }
.extra-inner .submit-box { min-height: 92px }

.how-card {
  max-width: 1060px;
  margin: 0 auto 36px;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, .28);
  background: rgba(7, 7, 23, .55);
}
.how-card h2 { font-size: 22px; margin-bottom: 12px }
.how-card ol { color: var(--muted); padding-left: 18px; line-height: 1.7 }
.how-card li { margin: 6px 0 }

.recent-strip {
  max-width: 1060px;
  width: 100%;
  margin: auto auto 0;
  padding-top: 28px;
}
.recent-strip h2 { font-size: 18px; margin-bottom: 12px; color: #d9d8ea }
.recent-list { display: flex; flex-wrap: wrap; gap: 10px }
.recent-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(12, 12, 22, .72);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}
.recent-link:hover { color: var(--gold-2); border-color: rgba(212, 175, 55, .45) }

.dash-submit { margin: 0; align-items: stretch }
.dash-submit .url { min-height: 92px }

.hist-head { margin-bottom: 18px }
.hist-head h2 { font-size: 28px; letter-spacing: -.8px }
.hist-head p { color: var(--muted); margin-top: 6px }

.hist-list { display: grid; gap: 10px }

.hist-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(12, 12, 22, .72);
}

.hist-left { display: flex; align-items: flex-start; gap: 12px; min-width: 0 }
.hist-urls { display: grid; gap: 6px; min-width: 0 }
.hist-urls a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  word-break: break-all;
}
.hist-urls a:hover { color: var(--gold-2) }
.hist-ext { color: var(--muted); font-size: 13px }

.hist-check {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #3ee0a2;
  border: 2px solid #3ee0a2;
  font-size: 12px;
  margin-top: 2px;
}

.hist-check.wait {
  color: var(--gold);
  border-color: var(--gold);
}

.hist-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #8d8ca0;
  font-size: 14px;
  flex: 0 0 auto;
}

.hist-price { color: var(--gold-2); font-weight: 700 }

.submit-box {
  border-color: rgba(212, 175, 55, .42);
}

.fade-in { animation: fadeUp .16s ease both }
.slide-from-right { animation: fromRight .16s ease both }
.slide-from-left { animation: fromLeft .16s ease both }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px) }
  to { opacity: 1; transform: none }
}
@keyframes fromRight {
  from { opacity: 0; transform: translateX(12px) }
  to { opacity: 1; transform: none }
}
@keyframes fromLeft {
  from { opacity: 0; transform: translateX(-12px) }
  to { opacity: 1; transform: none }
}

.btn-lg { min-height: 52px; border-radius: 16px; font-size: 16px; line-height: 1.2; padding: 14px 18px; overflow: visible }

.nav-tabs {
  position: relative;
  display: flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, .28);
  background: rgba(7, 7, 22, .55);
}
.nav-tabs-pill {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(141, 39, 255, .55), rgba(200, 162, 74, .45));
  transition: transform .35s ease, width .35s ease;
  pointer-events: none;
}
.nav-tab {
  position: relative;
  z-index: 1;
  padding: 6px 11px;
  border: 0;
  background: transparent;
  color: #d9d8ea;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
}
.nav-tab.is-on { color: #fff }

.auth-box {
  width: min(520px, 100%);
  height: fit-content;
  align-self: center;
  padding: 18px 18px 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: none;
  text-align: left;
}

.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 5px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: #0f1619;
  border: 1px solid var(--line);
}

.auth-tabs-pill {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  border-radius: 12px;
  background: var(--accent);
  box-shadow: none;
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), width .38s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.auth-tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  padding: 12px 6px;
  border-radius: 12px;
  white-space: nowrap;
}
.auth-tab.is-on { color: #061316 }

.auth-stage {
  position: relative;
  overflow: hidden;
  transition: height .38s cubic-bezier(.22, 1, .36, 1);
}
.auth-track {
  display: flex;
  align-items: flex-start;
  width: 300%;
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.auth-panel {
  flex: 0 0 33.333%;
  width: 33.333%;
  padding: 0 2px 8px;
  box-sizing: border-box;
  height: auto;
}

.index-console {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto 36px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, .35);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 30%),
    rgba(7, 7, 23, .78);
  box-shadow: 0 18px 60px rgba(82, 33, 255, .14);
}
.console-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.console-kicker {
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--accent);
}
.console-price {
  color: var(--gold-2);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, .35);
}
.console-field { display: grid; gap: 8px; margin-bottom: 12px }
.console-field > span { color: #c9c8d8; font-weight: 600; font-size: 13px }
.console-input {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(139, 53, 255, .35);
  background: rgba(18, 17, 40, .85);
  transition: border-color .25s, box-shadow .25s;
}
.console-input:focus-within {
  border-color: rgba(212, 175, 55, .7);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .12);
}
.console-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
}
.console-bar {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.btn-second, .btn-send {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: .25s;
}
.btn-second {
  flex: 0 0 auto;
  padding: 0 20px;
  min-height: 56px;
  border-radius: 16px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
}
.btn-second:hover { background: #242b28; transform: none }
.btn-send {
  flex: 1;
  min-height: 48px;
  border-radius: 14px;
  color: #061316;
  font-size: 15px;
  font-weight: 650;
  background: var(--accent);
  border: 1px solid #2aa8b8;
  box-shadow: none;
}
.btn-send:hover { background: #6fd4de; transform: none; box-shadow: none }
.btn-send:disabled, .btn-second:disabled { opacity: .55; transform: none }

.how-wrap { width: min(760px, 100%); margin: 0 auto 28px }
.how-wrap h2 { font-size: 22px; margin-bottom: 14px }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.how-step {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.how-step b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 13px;
  color: #eef2ef;
}
.how-step p { color: var(--muted); font-size: 13px; line-height: 1.45 }

.recent-strip { width: min(760px, 100%) }

@media (max-width: 800px) {
  .how-steps { grid-template-columns: 1fr }
  .console-bar { flex-direction: column }
  .btn-second, .btn-send { width: 100% }
  .auth-tab { font-size: 11px; padding: 11px 4px }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important }
}

.profile { position: relative; z-index: 110 }
.avatar {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel);
  box-shadow: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block }
.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  display: grid;
  gap: 2px;
  opacity: 0;
  z-index: 110;
  pointer-events: none;
  transform: translateY(-8px);
  transition: .22s ease;
  z-index: 30;
}
.profile.open .profile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.profile-head {
  display: grid;
  gap: 4px;
  padding: 10px 12px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.profile-head b { font-size: 13px; word-break: break-all }
.profile-head span { color: var(--gold-2); font-weight: 700; font-size: 13px }
.profile-head .profile-tg { color: #d9d8ea; font-weight: 600 }
.profile-menu a, .profile-menu button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #e8e7f4;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}
.profile-menu a:hover, .profile-menu button:hover {
  background: rgba(139, 53, 255, .16);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(3, 3, 19, .62);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
}
.modal.open { opacity: 1; pointer-events: auto }
.modal-card {
  width: min(380px, calc(100% - 32px));
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, .35);
  background: #121228;
  display: grid;
  gap: 14px;
  transform: translateY(10px);
  transition: .22s ease;
}
.modal.open .modal-card { transform: none }
.modal-card h3 { font-size: 20px }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px }

.account-page { display: grid; gap: 18px; justify-items: center }
.account-card { width: min(520px, 100%); margin-bottom: 0; position: relative }
.account-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 48px;
}
.notify-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  cursor: pointer;
}
.notify-btn svg { width: 18px; height: 18px; fill: currentColor }
.notify-btn.is-on { color: var(--accent); border-color: var(--line) }
.notify-btn.is-off {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}
.notify-btn.is-off svg { opacity: .55 }
.ann-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.3fr);
  align-items: stretch;
  gap: 10px;
}
.ann-row .btn-send {
  margin: 0;
  width: 100%;
  padding: 0 14px;
}
.ann-row .ann-side {
  min-height: 44px;
  font-size: 14px;
}
.ann-row .ann-main {
  min-height: 56px;
  font-size: 16px;
}
@media (max-width: 720px) {
  .ann-row { grid-template-columns: 1fr 1fr }
  .ann-row .ann-main { grid-column: 1 / -1 }
}
.ann-text { min-height: 110px; resize: vertical }
.ann-preview {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, .25);
  background: rgba(12, 12, 28, .6);
}
.ann-item {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ann-item img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 12px;
}
.support-snippet {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  background: rgba(0,0,0,.25);
  padding: 10px 12px;
  border-radius: 10px;
}
.tg-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.tg-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel);
}
.tg-x {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--text);
  line-height: 1;
  font-size: 14px;
}
.account-photo-btn {
  padding: 0;
  border: 0;
  background: none;
  cursor: default;
  flex: 0 0 auto;
  border-radius: 50%;
  position: relative;
}
.account-photo-btn.can-pick { cursor: pointer }
.account-photo-btn:disabled { cursor: default }
.photo-pick {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(7, 7, 23, .94);
  border: 1px solid rgba(212, 175, 55, .28);
  z-index: 8;
}
.photo-pick[hidden] { display: none !important }
.photo-choice {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
}
.photo-choice img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, .45);
  display: block;
}
.account-hero { position: relative }
.account-photo-wrap { position: relative; flex: 0 0 auto }
.account-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, .5);
  box-shadow: 0 0 24px rgba(139, 53, 255, .28);
  background: #0a0a1c;
  display: block;
}
.account-photo-btn.can-pick:hover .account-photo {
  border-color: rgba(212, 175, 55, .9);
}
.account-hero h1 { font-size: 22px; letter-spacing: -.4px }
.account-hero .tg { color: var(--gold-2); font-weight: 700; margin-top: 4px }
.account-hero .mail { color: var(--muted); font-size: 13px; margin-top: 4px }
.account-tg { margin-top: 18px }
#refresh-photo { margin: 14px auto 0 }
.btn-send.full { width: 100% }

.dash-hello {
  width: min(760px, 100%);
  margin: 0 auto 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
  background: linear-gradient(110deg, #f0d78c, #c07bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.send-wait,
.send-ring,
.ring-bg,
.ring-fg { display: none }

.gold-bar {
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.hist-item .gold-bar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  margin: 0;
}
.gold-bar[hidden] { display: none }
.gold-bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--accent);
  will-change: transform;
}
.gold-bar.run .gold-bar-fill {
  animation: goldFill 60s linear forwards;
}
@keyframes goldFill {
  from { transform: scaleX(0) }
  to { transform: scaleX(1) }
}

.btn-reindex {
  border: 1px solid rgba(212, 175, 55, .4);
  background: rgba(212, 175, 55, .1);
  color: var(--gold-2);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  justify-content: center;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(12, 12, 22, .72);
  color: var(--text);
  font-weight: 700;
}
.page-btn.is-on {
  background: var(--accent);
  border-color: transparent;
}

.user-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.user-toolbar h2 { margin: 0; flex: 0 0 auto }
.search-toggle {
  border: 1px solid rgba(212, 175, 55, .4);
  background: transparent;
  color: var(--gold-2);
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 700;
}
.slide-search {
  width: 0;
  opacity: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  transition: width .32s ease, opacity .22s ease, padding .32s ease;
}
.slide-search.open {
  width: 220px;
  opacity: 1;
  pointer-events: auto;
  padding: 8px 12px;
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 12px;
  background: rgba(18, 17, 40, .9);
}

.tg-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.credit-form, .tg-form, .pass-form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pay-box { display: grid; gap: 8px }
.pay-box[hidden] { display: none !important }
.pay-line { color: var(--gold-2); font-weight: 700 }

.wallet-page {
  display: flex;
  justify-content: center;
  align-items: start;
}
.wallet-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  justify-content: stretch;
  align-items: stretch;
  gap: 16px;
  width: min(1180px, 100%);
}
.wallet-pay,
.wallet-side {
  flex: unset;
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.wallet-side {
  width: auto;
  max-width: none;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.wallet-pay {
  width: auto;
  max-width: none;
  padding: 28px 32px;
  display: grid;
  gap: 18px;
}
.wallet-ask {
  display: flex;
  gap: 12px;
}
.wallet-ask .text-input { flex: 1; min-width: 0; padding: 16px 18px; font-size: 18px }
.wallet-ask .btn-send {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 16px;
}
.pay-note {
  min-height: 20px;
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 600;
}
.wallet-pay label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--muted);
}
.wallet-pay .text-input { padding: 16px 18px; font-size: 16px }
.pay-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.pay-copy-row .btn-send { margin: 0; min-height: 52px }
.wallet-side .console-top { margin-bottom: 6px }
.wallet-side .hist-list { display: grid; gap: 0; align-content: start; grid-auto-rows: 48px; overflow: auto; max-height: 420px }
.wallet-side .hist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.wallet-side .hist-item + .hist-item {
  border-top: 1px solid var(--line);
}
.wallet-side .hist-item .tiny {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .wallet-box { flex-direction: column; width: 100% }
  .wallet-pay { width: 100%; max-width: none }
}

.support-lock {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.support-lock .footer { display: none }
.support-lock .support-page {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 18px;
}
.support-page {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
}
.support-box {
  width: min(640px, calc(100% - 200px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: 0;
  height: 100%;
}
.support-side {
  width: 180px;
  flex: 0 0 180px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, .28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 30%),
    rgba(7, 7, 23, .78);
  color: var(--gold-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.support-card:hover {
  border-color: rgba(212, 175, 55, .7);
}
.tg-ico { width: 22px; height: 22px }
.support-hello {
  align-self: center;
  margin: auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.support-log:has(.support-hello) {
  align-content: center;
}
.support-log {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 8px 2px;
}
.home-tg {
  margin-left: auto;
  margin-top: 28px;
  display: grid;
  gap: 10px;
}
.home-tg .support-card { width: 168px }
.support-line {
  display: grid;
  gap: 4px;
  max-width: 82%;
}
.support-line.me { justify-self: end; justify-items: end }
.support-line.them { justify-self: start; justify-items: start }
.support-who {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.support-msg {
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}
.support-line.me .support-msg {
  background: linear-gradient(110deg, rgba(141, 39, 255, .35), rgba(200, 162, 74, .28));
}
.support-line.them .support-msg {
  background: rgba(255, 255, 255, .06);
}
.support-ask {
  display: flex;
  gap: 8px;
}
.support-ask .text-input { flex: 1; min-width: 0 }
.support-ask .btn-send,
.support-ask .btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
}
#support-new[hidden],
#support-form[hidden],
#support-close[hidden] { display: none !important }
@media (max-width: 800px) {
  .support-lock {
    height: auto;
    overflow: auto;
  }
  .support-lock .support-page {
    overflow: visible;
    height: auto;
    flex: none;
  }
  .support-page { flex-direction: column }
  .support-box {
    width: 100%;
    height: auto;
    min-height: calc(100dvh - var(--header) - 24px);
    grid-template-rows: auto minmax(220px, 42vh) auto;
  }
  .support-log { min-height: 220px }
  .support-side { width: 100%; flex: none; grid-template-columns: 1fr 1fr }
  .home-tg .support-card { width: 148px; min-height: 64px; font-size: 13px }
}


