/* Anik x Cheats Glory — polished UI layer loaded on landing, login, and dashboard. */

/* Brand wordmark & GLORY tag */
.brand { gap: 10px; }
.nx-logo-text {
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 35%, var(--muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nx-brand-tag {
  margin-left: 0 !important;
  padding: 3px 8px !important;
  border-left: 0 !important;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-2, rgba(255,255,255,.04));
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* Landing hero ambient depth & live status dot */
html[data-theme="dark"] .nx-hero {
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(240, 185, 11, 0.08), transparent 65%),
    radial-gradient(50% 45% at 85% 20%, rgba(99, 102, 241, 0.07), transparent 65%);
}
.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2, rgba(255,255,255,.03));
  font-size: 12px;
  font-weight: 600;
}
.nx-term {
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: transform .22s ease, border-color .22s ease;
}
.nx-term:hover { transform: translateY(-2px); }
.nx-term-dot {
  animation: nx-pulse 2s ease-in-out infinite;
}
@keyframes nx-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}

/* Offer cards & bento cells hover polish */
.nx-offer, .nx-cell, .nx-custom {
  border-radius: 14px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.nx-offer:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
.nx-offer-badge {
  background: linear-gradient(135deg, #f0b90b, #d99b00);
  color: #111 !important;
  font-weight: 700;
  border: 0;
}
.nx-cell:hover {
  border-color: var(--line-3, var(--faint));
}
.nx-server {
  transition: transform .15s ease, border-color .15s ease;
}
.nx-server:hover {
  transform: translateY(-1px);
  border-color: var(--faint);
}

/* Buttons & inputs */
.btn, button.btn {
  transition: transform .14s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:active:not(:disabled) { transform: scale(.985); }
.btn.primary:hover:not(:disabled), .btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--accent, var(--text));
  box-shadow: 0 0 0 3px rgba(127, 127, 127, 0.14);
  outline: none;
}

/* Dashboard cards & KPIs */
.card {
  border-radius: 14px;
  transition: border-color .18s ease;
}
.kpi {
  border-radius: 14px;
  transition: transform .16s ease, border-color .16s ease;
}
.kpi:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
}
.pill-credits {
  border-radius: 999px;
  padding: 0 14px;
  transition: border-color .16s ease, background-color .16s ease;
}
.pill-credits:hover { background: var(--hover); }

/* Amount picker (credits page) */
.amount { display: grid; gap: 14px; }
.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-presets button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--input);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: transform .14s ease, border-color .15s ease, background-color .15s ease;
}
.amount-presets button:hover { border-color: var(--faint); transform: translateY(-1px); }
.amount-presets button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.total-value { font-size: clamp(26px, 4vw, 34px); font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.total small { color: var(--muted); }

/* Binance Pay modal & order code box */
.order-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(240, 185, 11, 0.45);
  background: rgba(240, 185, 11, 0.06);
}
.order-code b { font: 700 clamp(18px, 3vw, 23px) var(--mono); letter-spacing: .06em; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 14px; }

/* Settings & login polish */
.set-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; font-size: 13.5px; align-items: center; }
.kv span { color: var(--muted); }
.code-list { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.code-list div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); font-family: var(--mono); }
.login-card { border-radius: 16px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22); }
.login-card .nx-seg { width: 100%; display: flex; }
.login-card .nx-seg button { flex: 1 1 0; }
.login-card form { display: flex; flex-direction: column; gap: 10px; }
.login-card label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.login-card .btn-primary { margin-top: 6px; width: 100%; min-height: 48px; }

/* Dialog polish */
dialog#dlg {
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}
dialog#dlg::backdrop {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
