@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Eobot 3.0 — layout inspired by classic cloud-mining dashboards + light/dark themes */

:root {
  --ne-brand: #3a8be7;
  --ne-brand-dark: #2e75c8;
  --ne-green: #2e8b2e;
  --ne-link: #1976d2;
  --ne-radius: 8px;
  --ne-radius-lg: 14px;
  --ne-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  --ne-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] {
  --ne-bg: #ffffff;
  --ne-text: #333333;
  --ne-muted: #555555;
  --ne-header-bg: #3a8be7;
  --ne-header-text: #ffffff;
  --ne-logo-mark-bg: #ffffff;
  --ne-logo-mark-text: #3a8be7;
  --ne-border: #d4e4f7;
  --ne-border-strong: #999999;
  --ne-card-bg: #fafcff;
  --ne-card-border: #d4e4f7;
  --ne-input-bg: #ffffff;
  --ne-coin-hover: #f4f9ff;
  --ne-table-head: #e8f2fc;
  --ne-subnav-bg: #ffffff;
  --ne-error: #b00020;
}

[data-theme="dark"] {
  --ne-bg: #121418;
  --ne-text: #e8eaed;
  --ne-muted: #c8cace; /* was #b0b3b8 — improved contrast ratio for WCAG AA */
  --ne-header-bg: #1e2a3a;
  --ne-header-text: #e8eaed;
  --ne-logo-mark-bg: #3a8be7;
  --ne-logo-mark-text: #ffffff;
  --ne-border: #2a3340;
  --ne-border-strong: #4a5568;
  --ne-card-bg: #1a1f28;
  --ne-card-border: #2a3340;
  --ne-input-bg: #141820;
  --ne-coin-hover: #222a36;
  --ne-table-head: #243044;
  --ne-subnav-bg: #1a1f28;
  --ne-error: #ff6b6b;
}

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

html, body {
  min-height: 100%;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: var(--ne-bg);
  color: var(--ne-text);
  font-size: 14px;
}

a { color: var(--ne-link); }

/* ===== Header ===== */
.header {
  background: var(--ne-header-bg);
  color: var(--ne-header-text);
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ne-header-text);
  text-decoration: none;
}

.logo-mark {
  background: var(--ne-logo-mark-bg);
  color: var(--ne-logo-mark-text);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ne-radius);
  font-size: 14px;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ne-header-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.nav a:hover { text-decoration: underline; }
.nav a.active { text-decoration: underline; }

.btn-theme {
  background: transparent;
  color: var(--ne-header-text);
  border: 1px solid rgba(255,255,255,0.45);
  padding: 6px 12px;
  border-radius: var(--ne-radius);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-theme:hover {
  background: rgba(255,255,255,0.12);
}

.nav-telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 136, 204, 0.2);
  color: var(--ne-header-text);
  border: 1px solid rgba(0, 180, 255, 0.55);
  padding: 6px 12px;
  border-radius: var(--ne-radius);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.nav-telegram-btn:hover {
  background: rgba(0, 136, 204, 0.35);
}

.nav-telegram-icon {
  flex-shrink: 0;
}

.ne-telegram-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ne-telegram-modal[hidden] {
  display: none !important;
}

.ne-telegram-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.ne-telegram-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 24px 22px 20px;
  border-radius: 12px;
  border: 1px solid var(--ne-border);
  background: var(--ne-card-bg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.ne-telegram-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0088cc;
}

.ne-telegram-dialog h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--ne-text);
}

.ne-telegram-text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ne-muted);
}

.ne-telegram-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ne-telegram-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--ne-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.ne-telegram-close:hover {
  color: var(--ne-text);
}

.page-notice {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 0;
  font-size: 12px;
  color: var(--ne-muted);
  text-align: center;
}

.page-title {
  text-align: center;
  font-size: 26px;
  font-weight: 400;
  padding: 26px 16px 14px;
  color: var(--ne-text);
}

.topbar {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 15px;
  color: var(--ne-text);
}

.topbar .left  { text-align: left; grid-column: 1; }
.topbar .mid   { text-align: center; grid-column: 2; color: var(--ne-green); font-weight: 700; font-size: 16px; white-space: nowrap; }
.topbar label { font-weight: 700; margin-right: 6px; }

.topbar select {
  padding: 4px 6px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--ne-border-strong);
  background: var(--ne-input-bg);
  color: var(--ne-text);
}

.ghs-alloc-section {
  max-width: 1320px;
  margin: 0 auto 24px;
  padding: 0 20px;
}

.ghs-alloc-section > .ghs-alloc-top,
.ghs-alloc-section > .ghs-alloc-summary,
.ghs-alloc-section > .ghs-alloc-grid-wrap,
.ghs-alloc-section > .ghs-alloc-toast {
  background: var(--ne-card-bg, var(--ne-surface));
  border: 1px solid var(--ne-border);
  border-radius: 12px;
}

.ghs-alloc-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(46, 139, 46, 0.06) 0%, transparent 55%);
}

.ghs-alloc-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ghs-alloc-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ne-text-muted, #667);
  max-width: 520px;
}

.ghs-alloc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ghs-alloc-toggle {
  min-width: 108px;
}

.ghs-alloc-section:not(.is-collapsed) .ghs-alloc-toggle-label-show {
  display: none;
}

.ghs-alloc-section.is-collapsed .ghs-alloc-toggle-label-hide {
  display: none;
}

.ghs-alloc-section.is-collapsed .ghs-alloc-body {
  display: none;
}

.ghs-alloc-section.is-collapsed .ghs-alloc-sub {
  display: none;
}

.ghs-alloc-section.is-collapsed .ghs-alloc-toolbar .ghs-alloc-btn:not(.ghs-alloc-toggle) {
  display: none;
}

.ghs-alloc-section.is-collapsed .ghs-alloc-top {
  margin-bottom: 0;
}

.ghs-alloc-collapsed-hint {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ne-green);
}

.ghs-alloc-section:not(.is-collapsed) .ghs-alloc-collapsed-hint {
  display: none !important;
}

.ghs-alloc-body > .ghs-alloc-summary {
  margin-bottom: 12px;
}

.ghs-alloc-body > .ghs-alloc-grid-wrap {
  margin-bottom: 0;
}

.ghs-alloc-btn {
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--ne-border-strong);
  background: var(--ne-input-bg);
  color: var(--ne-text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.ghs-alloc-btn:hover:not(:disabled) {
  border-color: var(--ne-green);
  background: rgba(46, 139, 46, 0.08);
}

.ghs-alloc-btn-primary {
  background: var(--ne-green);
  border-color: var(--ne-green);
  color: #fff;
  min-width: 132px;
}

.ghs-alloc-btn-primary:hover:not(:disabled) {
  background: #268026;
  border-color: #268026;
  color: #fff;
}

.ghs-alloc-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ghs-alloc-btn.is-loading .ghs-alloc-btn-label {
  opacity: 0;
}

.ghs-alloc-btn.is-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ghs-alloc-spin 0.7s linear infinite;
}

.ghs-alloc-btn-primary {
  position: relative;
}

.ghs-alloc-btn-max {
  width: 100%;
  background: var(--ne-green);
  border-color: var(--ne-green);
  color: #fff;
  font-size: 14px;
  padding: 10px 12px;
}

.ghs-alloc-btn-max:hover:not(:disabled) {
  background: #268026;
  border-color: #268026;
  color: #fff;
}

.ghs-alloc-max-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 4px 0;
}

.ghs-alloc-max-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--ne-text-muted, #778);
  text-align: center;
  line-height: 1.3;
}

.ghs-alloc-grid-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.ghs-alloc-grid-hint {
  margin: 0;
  font-size: 12px;
  color: var(--ne-text-muted, #778);
}

.ghs-alloc-cell-max {
  flex-shrink: 0;
  padding: 0 8px;
  min-height: 34px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ne-green);
  background: rgba(46, 139, 46, 0.12);
  border: none;
  border-left: 1px solid var(--ne-border-strong);
  cursor: pointer;
}

.ghs-alloc-cell-max:hover {
  background: rgba(46, 139, 46, 0.22);
}

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

.ghs-alloc-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, 1.4fr) minmax(140px, 1fr);
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  align-items: stretch;
}

.ghs-alloc-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ne-input-bg, rgba(0, 0, 0, 0.03));
  border: 1px solid var(--ne-border);
}

.ghs-alloc-stat-accent {
  border-color: rgba(46, 139, 46, 0.35);
  background: rgba(46, 139, 46, 0.07);
}

.ghs-alloc-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ne-text-muted, #778);
}

.ghs-alloc-stat-value {
  font-size: 15px;
  color: var(--ne-text);
}

.ghs-alloc-stat-value strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ne-green);
}

.ghs-alloc-stat-value small {
  font-size: 12px;
  font-weight: 700;
  color: var(--ne-text-muted, #778);
}

.ghs-alloc-progress-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 4px 2px;
}

.ghs-alloc-progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--ne-border);
  overflow: hidden;
}

.ghs-alloc-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d9a3d, #5ec75e);
  transition: width 0.25s ease, background 0.2s ease;
}

.ghs-alloc-progress-bar.is-over {
  background: linear-gradient(90deg, #c62828, #ef5350);
}

.ghs-alloc-progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ne-text-muted, #778);
  text-align: right;
}

.ghs-alloc-grid-wrap {
  padding: 16px 20px 20px;
  margin-bottom: 0;
}

.ghs-alloc-grid-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ne-text-muted, #778);
}

.ghs-alloc-grid-head .ghs-alloc-grid-title {
  margin: 0;
}

.ghs-alloc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ghs-alloc-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 10px;
  border: 1px solid var(--ne-border);
  border-radius: 10px;
  background: var(--ne-input-bg, rgba(0, 0, 0, 0.02));
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ghs-alloc-cell.is-active {
  border-color: rgba(46, 139, 46, 0.45);
  background: rgba(46, 139, 46, 0.05);
  box-shadow: inset 0 0 0 1px rgba(46, 139, 46, 0.12);
}

.ghs-alloc-cell-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.ghs-alloc-cell-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ghs-alloc-cell-icon svg,
.ghs-alloc-cell-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.ghs-alloc-cell-sym {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ghs-alloc-input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--ne-border-strong);
  border-radius: 8px;
  background: var(--ne-surface, #fff);
  overflow: hidden;
}

.ghs-alloc-input-wrap:focus-within {
  border-color: var(--ne-green);
  box-shadow: 0 0 0 2px rgba(46, 139, 46, 0.15);
}

.ghs-alloc-cell input {
  flex: 1;
  min-width: 0;
  padding: 8px 8px 8px 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--ne-text);
  text-align: right;
}

.ghs-alloc-cell input:focus {
  outline: none;
}

.ghs-alloc-input-suffix {
  padding: 0 8px 0 0;
  font-size: 10px;
  font-weight: 800;
  color: var(--ne-text-muted, #889);
  letter-spacing: 0.04em;
}

.ghs-alloc-toast {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid rgba(46, 139, 46, 0.35);
  background: rgba(46, 139, 46, 0.08);
  color: var(--ne-green);
}

.ghs-alloc-toast.ghs-alloc-msg-error {
  border-color: rgba(198, 40, 40, 0.35);
  background: rgba(198, 40, 40, 0.08);
  color: #c62828;
}

[data-theme="dark"] .ghs-alloc-top {
  background: linear-gradient(135deg, rgba(125, 206, 160, 0.08) 0%, transparent 55%);
}

[data-theme="dark"] .ghs-alloc-input-wrap {
  background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 1100px) {
  .ghs-alloc-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ghs-alloc-progress-wrap,
  .ghs-alloc-max-wrap {
    grid-column: 1 / -1;
  }
  .ghs-alloc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ghs-alloc-top {
    padding: 16px;
  }
  .ghs-alloc-toolbar {
    width: 100%;
  }
  .ghs-alloc-toolbar .ghs-alloc-btn {
    flex: 1 1 auto;
  }
  .ghs-alloc-summary {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }
  .ghs-alloc-grid-wrap {
    padding: 14px 16px 16px;
  }
  .ghs-alloc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.coin.mining-active:not(.selected) {
  box-shadow: inset 0 0 0 2px rgba(76, 175, 80, 0.45);
}

.coins-board {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px 12px;
}

.coins-board-head {
  text-align: center;
  padding: 14px 12px 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--ne-border);
}

.coins-board-total {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ne-green);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.coins-footer {
  max-width: 1320px;
  margin: 0 auto 20px;
  padding: 0 20px;
  font-size: 12px;
  color: var(--ne-muted);
}

/* ===== Dashboard action bar & cloud info ===== */
.dash-actions {
  box-sizing: border-box;
  width: min(1680px, calc(100vw - 32px));
  max-width: none;
  margin: 0 auto 20px;
  padding: 14px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  background: var(--ne-brand);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(58, 139, 231, 0.25);
}

.dash-action {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  padding: 4px 2px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.dash-action:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dash-action-active {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.dash-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.dash-action-label {
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.cloud-info-card {
  max-width: 420px;
  margin: 0 auto 48px;
  padding: 18px 22px 16px;
  border: 2px solid var(--ne-brand);
  border-radius: 6px;
  background: var(--ne-card-bg);
}

.cloud-info-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--ne-text);
  margin-bottom: 14px;
}

.cloud-info-list {
  margin: 0;
}

.cloud-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ne-border);
  font-size: 14px;
}

.cloud-info-row:last-child {
  border-bottom: none;
}

.cloud-info-row dt {
  font-weight: 700;
  color: var(--ne-text);
  margin: 0;
}

.cloud-info-row dd {
  margin: 0;
  text-align: right;
  color: var(--ne-text);
  font-weight: 400;
}

.cloud-info-rate {
  color: var(--ne-green) !important;
  font-weight: 700;
}

.cloud-info-section-label {
  padding: 10px 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ne-muted, #888);
}

.cloud-info-section-label-you {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--ne-border);
}

.cloud-info-row-network dt {
  color: var(--ne-brand, #1a73e8);
}

.cloud-info-row-network dd {
  font-weight: 600;
}

[data-theme="dark"] .cloud-info-rate {
  color: #7dcea0 !important;
}

/* ===== Referrals page ===== */
.ref-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.ref-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.ref-stat {
  border: 1px solid var(--ne-border);
  border-radius: 6px;
  padding: 16px 14px;
  background: var(--ne-card-bg);
  text-align: center;
}

.ref-stat-highlight {
  border-color: var(--ne-brand);
  background: var(--ne-coin-hover);
}

.ref-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ne-muted);
  margin-bottom: 8px;
}

.ref-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ne-text);
  line-height: 1.2;
}

.ref-stat-sub {
  font-size: 13px;
  margin-top: 6px;
  font-weight: 700;
}

.ref-usd {
  color: var(--ne-green);
}

.ref-ghs {
  color: var(--ne-text);
  font-size: 16px;
  font-weight: 700;
}

.ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.ref-card {
  max-width: none;
  margin: 0;
}

.ref-card-wide {
  margin-bottom: 16px;
}

.ref-steps {
  margin: 0 0 0 20px;
  color: var(--ne-muted);
  line-height: 1.7;
  font-size: 14px;
}

.ref-steps li {
  margin-bottom: 6px;
}

.ref-sim-result {
  font-size: 14px;
  line-height: 1.5;
}

.ref-referrer-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--ne-border);
}

.ref-referrer-block h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.ref-claim-input {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ref-claim-msg {
  margin-top: 10px;
  font-size: 13px;
}

.ref-claim-linked {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--ne-brand);
  background: var(--ne-coin-hover);
  font-size: 14px;
  line-height: 1.5;
}

.ref-claim-linked p {
  margin: 0;
}

/* ===== YouTuber program ===== */
.yt-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.yt-card-wide {
  max-width: none;
}

.yt-page-notice strong {
  color: var(--ne-brand);
}

.yt-rules-card {
  margin-bottom: 16px;
}

.yt-rules {
  margin: 0 0 0 20px;
  color: var(--ne-muted);
  line-height: 1.7;
  font-size: 14px;
}

.yt-rules li {
  margin-bottom: 8px;
}

.yt-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-bottom: 16px;
}

.yt-card {
  margin: 0;
}

.yt-card-wide {
  margin-bottom: 0;
}

.yt-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  border: 1px solid var(--ne-border-strong);
  border-radius: 8px;
  background: var(--ne-input-bg);
  color: var(--ne-text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.yt-status-msg {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.yt-status-warn {
  border: 1px solid rgba(255, 193, 7, 0.45);
  background: rgba(255, 193, 7, 0.12);
  color: var(--ne-text);
}

.yt-form-msg {
  margin-top: 12px;
  font-size: 13px;
}

.yt-my-status .yt-pending strong,
.yt-my-status .yt-ready strong {
  color: var(--ne-brand);
}

.yt-approved-head {
  margin-bottom: 14px;
}

.yt-approved-head h3 {
  margin: 0 0 6px;
}

.yt-approved-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.yt-video-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  background: var(--ne-card-bg);
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.yt-video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.yt-video-card.is-playing {
  transform: none;
}

.yt-video-card.is-playing .yt-thumb-badge {
  display: none;
}

.yt-thumb-wrap {
  position: relative;
  background: #0a0a0a;
}

.yt-thumb-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.yt-thumb-play-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  background: #0a0a0a;
}

.yt-thumb-play-btn:hover .yt-thumb-play {
  background: #ff1a1a;
  transform: translate(-50%, -50%) scale(1.06);
}

.yt-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-thumb-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #0a0a0a;
}

.yt-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  font-weight: 700;
  color: var(--ne-muted);
}

.yt-thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.08) 38%,
    rgba(0, 0, 0, 0.05) 58%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}

.yt-thumb-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.yt-thumb-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: #c0392b;
}

.yt-thumb-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-thumb-avatar-letter {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.yt-thumb-channel {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 0, 0, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
  pointer-events: none;
}

.yt-thumb-play::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-32%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.yt-thumb-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
}

.yt-thumb-badge strong {
  color: #ff4444;
  font-weight: 700;
}

.yt-video-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 14px 14px;
}

.yt-video-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ne-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-video-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--ne-muted);
}

.yt-meta-yt {
  display: inline-flex;
  flex-shrink: 0;
  color: #ff3b3b;
}

.yt-meta-channel {
  font-weight: 600;
  color: var(--ne-text);
}

.yt-meta-date::before {
  content: '📅 ';
}

.yt-video-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.yt-btn-like,
.yt-btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ne-border);
  text-align: center;
  line-height: 1.2;
}

.yt-btn-like {
  background: rgba(180, 120, 60, 0.22);
  border-color: rgba(180, 120, 60, 0.45);
  color: var(--ne-text);
}

.yt-btn-like::before {
  content: '👍';
}

.yt-btn-sub {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}

.yt-btn-sub::before {
  content: '🔔';
}

@media (max-width: 800px) {
  .yt-grid {
    grid-template-columns: 1fr;
  }

  .yt-approved-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .yt-approved-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .ref-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .ref-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Earnings page ===== */
.earn-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px 48px;
}

.earn-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

/* Keep content cards comfortable while the summary spans the full blue-bar width. */
.earn-wrap > .earn-card {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.earn-wrap-wide > .earn-card {
  max-width: none;
}

.earn-stat {
  border: 1px solid var(--ne-border);
  border-radius: 6px;
  padding: 16px 14px;
  background: var(--ne-card-bg);
  text-align: center;
}

.earn-stat-highlight {
  border-color: var(--ne-brand);
  background: var(--ne-coin-hover);
}

.earn-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ne-muted);
  margin-bottom: 8px;
}

.earn-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--ne-text);
  line-height: 1.2;
}

.earn-stat-sub {
  font-size: 12px;
  margin-top: 6px;
  color: var(--ne-muted);
}

.earn-card {
  max-width: none;
  margin: 0 0 16px;
}

.earn-card-wide {
  width: 100%;
}

.earn-section-head {
  margin-bottom: 14px;
}

.earn-section-head h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--ne-text);
}

.earn-table th:last-child,
.earn-table td.earn-action {
  text-align: right;
  white-space: nowrap;
}

.earn-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(76, 175, 80, 0.15);
  color: var(--ne-green);
}

.earn-badge-muted {
  background: rgba(158, 158, 158, 0.15);
  color: var(--ne-muted);
}

.earn-empty {
  margin: 12px 0 0;
  text-align: center;
}

.earn-steps {
  margin: 0 0 0 20px;
  color: var(--ne-muted);
  line-height: 1.7;
  font-size: 14px;
}

.earn-steps li {
  margin-bottom: 6px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.turnstile-wrap,
.form-group.turnstile-wrap {
  min-height: 65px;
  margin: 14px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.turnstile-wrap .cf-turnstile {
  flex: 0 0 auto;
  display: inline-block;
  margin: 0 auto;
  transform-origin: center center;
}

.turnstile-wrap iframe {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.turnstile-wrap[hidden] {
  display: none;
}

.earn-faucet-card .earn-faucet-body {
  max-width: none;
  width: 100%;
}

.earn-faucet-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.earn-faucet-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 10px 12px;
}

.earn-faucet-reward,
.earn-faucet-cooldown {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 4px;
}

.earn-faucet-timer {
  margin: 12px 0 4px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(56, 132, 255, 0.10);
  border: 1px solid rgba(56, 132, 255, 0.30);
  color: var(--accent, #4d9bff);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.4px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.earn-faucet-timer[hidden] {
  display: none;
}

.earn-faucet-btn {
  width: 100%;
  max-width: none;
  font-variant-numeric: tabular-nums;
}

.earn-faucet-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.earn-faucet-disabled {
  opacity: 0.85;
}

@media (max-width: 640px) {
  .earn-faucet-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .earn-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .earn-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

.coin-faucet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 720px) {
  .coin-faucet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .coin-faucet-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.coin-faucet-card {
  border: 2px solid var(--ne-border);
  border-radius: 8px;
  padding: 16px;
  background: var(--ne-card-bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.coin-faucet-card--ready {
  border-color: var(--ne-green);
  box-shadow: 0 0 0 1px rgba(46, 139, 46, 0.25);
}

.coin-faucet-card--cooldown {
  border-color: var(--ne-error);
  box-shadow: 0 0 0 1px rgba(176, 0, 32, 0.25);
}

.coin-faucet-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-faucet-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--ne-coin-hover);
}

.coin-faucet-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ne-coin-hover);
}

.coin-faucet-icon-svg svg {
  width: 36px;
  height: 36px;
  display: block;
}

.coin-faucet-symbol {
  font-size: 16px;
  font-weight: 700;
  color: var(--ne-text);
}

.coin-faucet-name {
  font-size: 12px;
  color: var(--ne-muted);
}

.coin-faucet-reward {
  font-size: 15px;
  font-weight: 700;
  color: var(--ne-text);
  word-break: break-all;
}

.coin-faucet-usd {
  font-size: 12px;
  color: var(--ne-muted);
}

.coin-faucet-status {
  min-height: 24px;
}

.coin-faucet-timer {
  font-size: 12px;
  color: var(--ne-muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.coin-faucet-btn {
  width: 100%;
  margin-top: auto;
}

.faucet-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.faucet-modal[hidden] {
  display: none !important;
}

.faucet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.faucet-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin: 0;
  padding: 24px;
  text-align: center;
}

.faucet-modal-card h3 {
  margin: 0 0 12px;
  padding: 0 28px;
  text-align: center;
}

.faucet-modal-card .hint,
.faucet-modal-card .msg-error {
  text-align: center;
}

.faucet-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--ne-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.faucet-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.faucet-modal-actions .btn {
  min-width: 120px;
}

#faucetModalTurnstile {
  min-height: 70px;
  margin: 16px 0 8px;
}

/* Admin users — list + edit modal */
.admin-users-panel h3 {
  margin: 0 0 4px;
}

.admin-users-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-users-head .hint {
  margin: 0;
}

.admin-user-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--ne-border);
  border-radius: 10px;
  background: var(--ne-coin-hover);
}

.admin-user-search {
  flex: 1 1 320px;
  max-width: none;
  margin: 0 !important;
}

.admin-user-search-meta {
  flex: 1 1 100%;
  margin: 0;
  min-height: 18px;
}

.admin-users-table-wrap {
  border: 1px solid var(--ne-border);
  border-radius: 10px;
  overflow: hidden;
}

table.admin.admin-users-table {
  margin: 0;
  font-size: 13px;
}

table.admin.admin-users-table th,
table.admin.admin-users-table td {
  padding: 11px 12px;
  vertical-align: middle;
}

table.admin.admin-users-table tbody tr:hover {
  background: var(--ne-coin-hover);
}

table.admin.admin-users-table .col-actions {
  width: 72px;
  text-align: center;
}

table.admin.admin-users-table td.num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

table.admin.admin-users-table th.admin-sort-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

table.admin.admin-users-table th.admin-sort-th:hover,
table.admin.admin-users-table th.admin-sort-th:focus-visible {
  color: var(--ne-brand);
  background: var(--ne-coin-hover);
  outline: none;
}

table.admin.admin-users-table th.admin-sort-th::after {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  opacity: 0.85;
}

table.admin.admin-users-table th.admin-sort-th.is-sort-desc::after {
  content: '▼';
}

table.admin.admin-users-table th.admin-sort-th.is-sort-asc::after {
  content: '▲';
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-status-pill.active {
  color: #7dcea0;
  background: rgba(46, 139, 46, 0.14);
  border: 1px solid rgba(46, 139, 46, 0.35);
}

.admin-status-pill.suspended {
  color: #ff8a80;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.admin-user-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-user-modal[hidden] {
  display: none !important;
}

.admin-user-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(2px);
}

.admin-user-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  max-height: min(92vh, 880px);
  overflow: auto;
  margin: 0;
  padding: 22px 24px 24px;
  border: 1px solid var(--ne-border-strong);
  border-radius: 14px;
  background: var(--ne-card-bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.admin-user-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ne-border);
  border-radius: 8px;
  background: var(--ne-input-bg);
  color: var(--ne-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.admin-user-modal-close:hover {
  color: var(--ne-text);
  border-color: var(--ne-brand);
}

.admin-user-modal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-right: 42px;
}

.admin-user-modal-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ne-brand);
}

.admin-user-modal-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.admin-user-modal-head-actions {
  display: flex;
  gap: 8px;
}

.admin-user-modal-msg {
  margin: 0 0 14px !important;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ne-coin-hover);
}

.admin-btn-danger {
  color: #ff8a80 !important;
  border-color: rgba(255, 138, 128, 0.45) !important;
}

.admin-btn-danger:hover {
  background: rgba(255, 107, 107, 0.1) !important;
}

.admin-user-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .admin-user-modal-grid {
    grid-template-columns: 1fr;
  }
}

.admin-user-panel {
  padding: 16px;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  background: var(--ne-input-bg);
}

.admin-user-panel-head {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ne-border);
}

.admin-user-panel-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ne-text);
}

.admin-user-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-referrer-display {
  min-height: 38px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.4;
}

.admin-field,
.admin-balance-row input,
.admin-user-modal .form-group input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--ne-border-strong);
  border-radius: 8px;
  background: var(--ne-card-bg);
  color: var(--ne-text);
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
}

.admin-field:focus,
.admin-balance-row input:focus {
  outline: none;
  border-color: var(--ne-brand);
  box-shadow: 0 0 0 3px rgba(58, 139, 231, 0.18);
}

.admin-field-readonly {
  opacity: 0.85;
  cursor: default;
  background: var(--ne-coin-hover);
}

.admin-user-save-btn {
  width: 100%;
  margin-top: 8px;
}

.admin-user-ghs-summary {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--ne-border);
  border-radius: 10px;
  background: var(--ne-card-bg);
}

.admin-ghs-highlight label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ne-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-ghs-total-input {
  font-size: 18px !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-ghs-breakdown {
  margin-top: 10px;
}

.admin-ghs-breakdown summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--ne-brand);
  user-select: none;
}

.admin-ghs-breakdown-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--ne-muted);
}

.admin-balances-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ne-muted);
}

.admin-balances-scroll {
  max-height: 360px;
  overflow: auto;
  margin-bottom: 14px;
  padding-right: 4px;
}

.admin-balances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.admin-balance-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--ne-border);
  border-radius: 10px;
  background: var(--ne-card-bg);
}

.admin-balance-row.is-ghs {
  border-color: rgba(58, 139, 231, 0.45);
  background: rgba(58, 139, 231, 0.08);
}

.admin-balance-row label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ne-text);
}

.admin-balance-row label span.sym {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ne-brand);
}

.admin-balance-row input {
  font-variant-numeric: tabular-nums;
}

.admin-user-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--ne-border-strong);
  border-radius: 8px;
  background: var(--ne-card-bg);
  color: var(--ne-brand);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.admin-user-gear:hover {
  border-color: var(--ne-brand);
  background: rgba(58, 139, 231, 0.12);
  transform: translateY(-1px);
}

.admin-user-gear-icon {
  display: block;
  font-size: 17px;
  line-height: 1;
}

.admin-mining-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ne-brand);
  background: rgba(58, 139, 231, 0.12);
  border: 1px solid rgba(58, 139, 231, 0.28);
}

.admin-mining-dutch-card {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}

.admin-ml-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-ml-status-online {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}
.admin-ml-status-offline {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}
.admin-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

/* Per-coin withdrawal method toggles (admin coins table) */
.admin-wd-methods {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}
.admin-wd-method {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  cursor: pointer;
}
.admin-wd-method input { margin: 0; }

/* Captcha settings card columns */
.admin-captcha-col {
  border: 1px solid var(--ne-border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
}

/* Online / last-seen presence indicator */
.admin-presence-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.admin-presence-dot.is-online {
  background: #2ecc71;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.22);
}
.admin-presence-dot.is-offline {
  background: #888;
  opacity: 0.55;
}
.admin-multi-badge {
  display: inline-block;
  min-width: 1.4em;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: #c0392b;
}
.admin-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--ne-accent, #4da3ff);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.admin-link-btn:hover { text-decoration: underline; }
.admin-device-identity-panel {
  margin: 12px 0 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 12px;
}
.admin-device-identity-summary {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.admin-device-identity-body { margin-top: 12px; }
.admin-device-identity-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.admin-related-accounts {
  margin: 6px 0 0;
  padding-left: 18px;
}
.admin-field.admin-presence-online {
  color: #2ecc71;
  font-weight: 700;
}

/* Admin confirm dialog (replaces browser prompt/confirm) */
.admin-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-confirm-modal[hidden] {
  display: none !important;
}

.admin-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(2px);
}

.admin-confirm-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  margin: 0;
  padding: 22px 24px 20px;
  border: 1px solid var(--ne-border-strong);
  border-radius: 14px;
  background: var(--ne-card-bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.admin-confirm-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  padding-right: 36px;
}

.admin-confirm-message {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ne-muted);
}

.admin-confirm-error {
  margin: 0 0 12px !important;
}

.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.admin-confirm-actions .btn-danger {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
}

.admin-confirm-actions .btn-danger:hover {
  background: #b71c1c;
  border-color: #b71c1c;
}

/* ===== Exchange page ===== */
.ex-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
  box-sizing: border-box;
}

.ex-target {
  max-width: none;
  width: 100%;
  margin: 0 0 16px;
}

.ex-model {
  color: var(--ne-brand);
}

.ex-target-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

.ex-target-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ne-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ex-target-ghs {
  font-size: 20px;
  font-weight: 700;
  color: var(--ne-text);
}

.ex-target-usd {
  font-size: 20px;
  font-weight: 700;
}

.ex-usd {
  color: var(--ne-green);
}

.ex-card-wide {
  max-width: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.ex-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ex-table-head h3 {
  margin: 0;
}

.ex-bulk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ex-all-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ex-all-modal[hidden] {
  display: none !important;
}

.ex-all-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.ex-all-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 24px 22px 20px;
  border-radius: 12px;
  border: 1px solid var(--ne-border);
  background: var(--ne-card-bg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.ex-all-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ne-brand);
}

.ex-all-dialog h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.ex-all-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ne-muted);
}

.ex-all-list {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--ne-border);
  background: var(--ne-input-bg);
  max-height: 180px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.6;
}

.ex-all-list:empty {
  display: none;
}

.ex-all-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ex-all-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--ne-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ex-all-close:hover {
  color: var(--ne-text);
}

.ex-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  width: 100%;
}

.ex-table {
  width: 100%;
  min-width: 960px;
  table-layout: auto;
}

.ex-table th,
.ex-table td {
  padding: 12px 14px;
  vertical-align: middle;
  white-space: nowrap;
}

.ex-table td.ex-bal,
.ex-table td.ex-usd {
  white-space: normal;
  min-width: 160px;
}

.ex-table th:last-child,
.ex-table td.ex-actions {
  min-width: 200px;
  white-space: nowrap;
}

.ex-table th:nth-child(4),
.ex-table td:nth-child(4) {
  min-width: 220px;
  width: 220px;
}

.ex-bal,
.ex-usd {
  font-size: 12px;
  line-height: 1.5;
  word-break: normal;
}

.ex-msg {
  margin-bottom: 12px;
  font-size: 13px;
}

.ex-coin-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 140px;
  white-space: nowrap;
}

.ex-coin-cell strong {
  display: block;
  white-space: nowrap;
}

.ex-coin-cell .hint {
  white-space: nowrap;
}

.ex-coin-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ex-coin-icon svg,
.ex-coin-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ex-table .ex-amt {
  width: 100%;
  min-width: 200px;
  max-width: 220px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--ne-border-strong);
  font-size: 12px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  background: var(--ne-input-bg);
  color: var(--ne-text);
}

.ex-actions {
  white-space: nowrap;
  text-align: right;
}

.ex-actions .btn-sm-ex {
  padding: 8px 14px;
  font-size: 13px;
  margin: 0 0 0 6px;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 700px) {
  .ex-target-row {
    grid-template-columns: 1fr;
  }
}

/* Deposit page styles: assets/css/deposit-shell.css (deposit.html) */

/* ===== Withdraw page ===== */
.wdr-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.wdr-shell {
  border: 1px solid var(--ne-card-border);
  border-radius: 12px;
  background: var(--ne-card-bg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .wdr-shell {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.wdr-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--ne-border);
  background: linear-gradient(135deg, var(--ne-coin-hover) 0%, var(--ne-card-bg) 100%);
}

.wdr-top-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.wdr-top-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--ne-brand);
  color: #fff;
}

.wdr-top-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ne-text);
  letter-spacing: -0.02em;
}

.wdr-top-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ne-muted);
  max-width: 420px;
}

.wdr-top-progress {
  flex-shrink: 0;
  width: 200px;
}

.wdr-progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.wdr-progress-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ne-muted);
}

.wdr-progress-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ne-brand);
}

.wdr-progress-track {
  height: 6px;
  border-radius: 99px;
  background: var(--ne-border);
  overflow: hidden;
}

.wdr-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ne-brand) 0%, #5ca3ef 100%);
  transition: width 0.35s ease;
}

.wdr-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 380px;
}

.wdr-nav {
  padding: 20px 0;
  border-right: 1px solid var(--ne-border);
  background: var(--ne-input-bg);
  display: flex;
  flex-direction: column;
}

.wdr-nav-label {
  margin: 0 0 10px;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ne-muted);
}

.wdr-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  max-height: 420px;
  padding: 0 8px;
}

.wdr-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s ease;
  position: relative;
}

.wdr-nav-item:hover {
  background: var(--ne-coin-hover);
}

.wdr-nav-item-active {
  background: var(--ne-coin-hover);
}

.wdr-nav-item-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ne-brand);
}

.wdr-nav-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wdr-nav-icon img,
.wdr-nav-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wdr-nav-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wdr-nav-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ne-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wdr-nav-sym {
  font-size: 11px;
  font-weight: 600;
  color: var(--ne-muted);
  letter-spacing: 0.03em;
}

.wdr-nav-bal {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--ne-green);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.wdr-balance-grid-top {
  margin: 0 0 18px;
}

.wdr-nav-state {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ne-border-strong);
}

.wdr-nav-item-done .wdr-nav-state {
  background: var(--ne-green);
  box-shadow: 0 0 0 3px rgba(46, 139, 46, 0.2);
}

.wdr-nav-item-active .wdr-nav-state {
  box-shadow: 0 0 0 3px rgba(58, 139, 231, 0.25);
}

.wdr-panel {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wdr-panel-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ne-border);
}

.wdr-panel-coin {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.wdr-coin-badge {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ne-input-bg);
  border: 2px solid var(--ne-border);
  padding: 6px;
}

.wdr-coin-badge img,
.wdr-coin-badge svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wdr-coin-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ne-text);
  line-height: 1.2;
}

.wdr-coin-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ne-muted);
  letter-spacing: 0.02em;
}

.wdr-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.wdr-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wdr-pill-warn {
  color: #b8860b;
  background: rgba(184, 134, 11, 0.12);
  border: 1px solid rgba(184, 134, 11, 0.25);
}

.wdr-pill-warn .wdr-pill-dot {
  background: #b8860b;
}

[data-theme="dark"] .wdr-pill-warn {
  color: #f0c040;
  background: rgba(240, 192, 64, 0.1);
  border-color: rgba(240, 192, 64, 0.2);
}

[data-theme="dark"] .wdr-pill-warn .wdr-pill-dot {
  background: #f0c040;
}

.wdr-pill-ok {
  color: var(--ne-green);
  background: rgba(46, 139, 46, 0.1);
  border: 1px solid rgba(46, 139, 46, 0.25);
}

.wdr-pill-ok .wdr-pill-dot {
  background: var(--ne-green);
}

.wdr-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wdr-network-picker {
  margin-bottom: 24px;
}

.wdr-network-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ne-text);
  letter-spacing: 0.01em;
}

.wdr-network-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wdr-network-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--ne-border);
  border-radius: 8px;
  background: var(--ne-input-bg);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.wdr-network-tab:hover {
  border-color: var(--ne-brand);
  background: var(--ne-coin-hover);
}

.wdr-network-tab-active {
  border-color: var(--ne-brand);
  background: var(--ne-coin-hover);
  box-shadow: 0 0 0 1px var(--ne-brand);
}

.wdr-network-tab-disabled {
  opacity: 0.55;
}

.wdr-network-tab-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ne-text);
  line-height: 1.25;
}

.wdr-network-tab-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--ne-muted);
  letter-spacing: 0.02em;
}

.wdr-network-tab[data-net="bnb"] .wdr-network-tab-sub {
  color: #c9940a;
}

[data-theme="dark"] .wdr-network-tab[data-net="bnb"] .wdr-network-tab-sub {
  color: #f0c040;
}

.wdr-nav-item-web3 .wdr-nav-sym::after {
  content: ' · Web3';
  font-weight: 600;
  color: #c9940a;
  font-size: 10px;
}

[data-theme="dark"] .wdr-nav-item-web3 .wdr-nav-sym::after {
  color: #f0c040;
}

.wdr-nav-item-partial .wdr-nav-state {
  background: #c9940a;
  box-shadow: 0 0 0 3px rgba(201, 148, 10, 0.2);
}

.wdr-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ne-text);
  letter-spacing: 0.01em;
}

.wdr-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ne-border);
  border-radius: 8px;
  background: var(--ne-input-bg);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wdr-input-wrap:focus-within {
  border-color: var(--ne-brand);
  box-shadow: 0 0 0 3px rgba(58, 139, 231, 0.15);
}

.wdr-input-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  color: var(--ne-muted);
  background: var(--ne-coin-hover);
  border-right: 1px solid var(--ne-border);
}

.wdr-input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: none;
  background: transparent;
  color: var(--ne-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  outline: none;
}

.wdr-input::placeholder {
  color: var(--ne-muted);
  opacity: 0.65;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.wdr-field-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ne-muted);
}

.wdr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.wdr-btn-save {
  padding: 11px 22px;
  font-size: 14px;
}

.wdr-btn-clear {
  padding: 11px 18px;
  font-size: 14px;
}

.wdr-feedback {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.wdr-feedback-ok {
  color: var(--ne-green);
  background: rgba(46, 139, 46, 0.1);
  border: 1px solid rgba(46, 139, 46, 0.2);
}

.wdr-feedback-error {
  color: var(--ne-error);
  background: rgba(176, 0, 32, 0.06);
  border: 1px solid rgba(176, 0, 32, 0.15);
}

[data-theme="dark"] .wdr-feedback-error {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.2);
}

.wdr-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ne-coin-hover);
  border: 1px solid var(--ne-border);
}

.wdr-note svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--ne-brand);
}

.wdr-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ne-muted);
}

/* Withdraw request (after wallet saved) */
.wdr-request {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--ne-border);
}

.wdr-request-head {
  margin-bottom: 18px;
}

.wdr-request-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ne-text);
}

.wdr-request-sub {
  margin: 0;
  font-size: 12px;
  color: var(--ne-muted);
  line-height: 1.45;
}

.wdr-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.wdr-balance-card {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--ne-border);
  background: var(--ne-input-bg);
}

.wdr-balance-card-usd .wdr-balance-usd {
  color: var(--ne-green);
}

.wdr-balance-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ne-muted);
  margin-bottom: 6px;
}

.wdr-balance-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ne-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  word-break: break-all;
}

.wdr-balance-usd {
  display: block;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wdr-payout-box {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ne-coin-hover);
  border: 1px dashed var(--ne-border);
}

.wdr-payout-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ne-muted);
  margin-bottom: 6px;
}

.wdr-payout-addr {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ne-text);
  word-break: break-all;
  line-height: 1.45;
}

.wdr-field-amount {
  margin-bottom: 4px;
}

.wdr-amount-row {
  display: flex;
  gap: 10px;
}

.wdr-amount-input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border: 1px solid var(--ne-border);
  border-radius: 8px;
  background: var(--ne-input-bg);
}

.wdr-amount-input:focus {
  outline: none;
  border-color: var(--ne-brand);
  box-shadow: 0 0 0 3px rgba(58, 139, 231, 0.15);
}

.wdr-max-btn {
  flex-shrink: 0;
  padding: 11px 16px;
  font-size: 14px;
}

.wdr-request-actions {
  margin-top: 16px;
}

.wdr-btn-withdraw {
  width: 100%;
  padding: 12px 22px;
  font-size: 15px;
}

@media (max-width: 760px) {
  .wdr-top {
    flex-direction: column;
    padding: 20px;
  }

  .wdr-top-progress {
    width: 100%;
  }

  .wdr-body {
    grid-template-columns: 1fr;
  }

  .wdr-nav {
    border-right: none;
    border-bottom: 1px solid var(--ne-border);
    padding: 16px 0;
  }

  .wdr-nav-list {
    max-height: 220px;
  }

  .wdr-panel {
    padding: 20px;
  }

  .wdr-panel-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .wdr-network-tabs {
    grid-template-columns: 1fr;
  }

  .wdr-actions {
    flex-direction: column;
  }

  .wdr-actions .btn {
    width: 100%;
  }

  .wdr-balance-grid {
    grid-template-columns: 1fr;
  }

  .wdr-amount-row {
    flex-direction: column;
  }

  .wdr-max-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .wdr-nav-list {
    max-height: 200px;
  }
}

@media (max-width: 700px) {
  .dash-actions {
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100vw - 40px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .dash-action {
    flex: 0 0 calc(25% - 8px);
  }

  .dash-action-label {
    font-size: 11px;
  }

  .cloud-info-card {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 480px) {
  .dash-action {
    flex: 0 0 calc(33.333% - 8px);
  }

  .dash-action-label {
    font-size: 10px;
  }
}

.grid-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 12px;
  margin-bottom: 14px;
}

.grid-row-4 .coin {
  flex: 0 0 calc((100% - 3 * 12px) / 4);
  max-width: calc((100% - 3 * 12px) / 4);
}

.grid-row-5 .coin,
.grid-row-pair .coin {
  flex: 0 0 calc((100% - 4 * 12px) / 5);
  max-width: calc((100% - 4 * 12px) / 5);
}

.coin {
  flex: 0 0 calc((100% - 4 * 12px) / 5);
  max-width: calc((100% - 4 * 12px) / 5);
  text-align: center;
  padding: 14px 8px 16px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.coin:hover {
  background: var(--ne-coin-hover);
  border-color: var(--ne-border);
}

.coin[data-mineable="1"] {
  cursor: default;
}

.coin[data-mineable="1"]:hover {
  background: transparent;
  border-color: transparent;
}

.coin[data-mineable="0"]:hover {
  background: transparent;
  border-color: transparent;
}

.coin.selected {
  border-color: var(--ne-green);
  animation: coin-select-pulse 1.8s ease-in-out infinite;
}

.coin.selected:hover {
  border-color: var(--ne-green);
}

@keyframes coin-select-pulse {
  0%, 100% {
    border-color: #2e8b2e;
    box-shadow: 0 0 0 0 rgba(46, 139, 46, 0.35);
  }
  50% {
    border-color: #5ec75e;
    box-shadow: 0 0 10px 3px rgba(46, 139, 46, 0.28);
  }
}

[data-theme="dark"] .coin.selected {
  animation-name: coin-select-pulse-dark;
}

@keyframes coin-select-pulse-dark {
  0%, 100% {
    border-color: #5cb85c;
    box-shadow: 0 0 0 0 rgba(125, 206, 160, 0.35);
  }
  50% {
    border-color: #7dcea0;
    box-shadow: 0 0 12px 4px rgba(125, 206, 160, 0.22);
  }
}

.coin.disabled,
.coin[data-mineable="0"]:not(.coin-power-card) {
  opacity: 0.55;
  cursor: default;
}

.coin-head {
  padding: 8px 4px 6px;
  margin: 0 -4px 4px;
  border-radius: 8px 8px 0 0;
}

.coin-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-icon svg,
.coin-icon img { width: 100%; height: 100%; object-fit: contain; }

.coin-name {
  color: var(--ne-link);
  font-weight: 700;
  font-size: 17px;
  text-decoration: underline;
  display: block;
  line-height: 1.3;
}

.coin-bal,
.coin-power,
.coin-model {
  color: var(--ne-text);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 2px;
}

.coin-model {
  color: var(--ne-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.coin-price,
.coin-usd {
  color: var(--ne-green);
  font-size: 15px;
  line-height: 1.45;
}

.coin-micro {
  color: #c62828;
  font-weight: 600;
}

.cloud-info-rate .coin-micro {
  color: #c62828;
}

[data-theme="dark"] .coin-name { color: #9ecbff; }
[data-theme="dark"] .coin-bal,
[data-theme="dark"] .coin-power { color: var(--ne-text); }
[data-theme="dark"] .coin-model { color: var(--ne-muted); }
[data-theme="dark"] .coin-price,
[data-theme="dark"] .coin-usd { color: #7dcea0; }
[data-theme="dark"] .coin-micro,
[data-theme="dark"] .cloud-info-rate .coin-micro { color: #ef5350; }

/* ===== Landing & forms ===== */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.hero {
  text-align: center;
  padding: 32px 0 22px;
}

.hero h2 {
  font-size: 21px;
  font-weight: 400;
  color: var(--ne-muted);
  margin-bottom: 12px;
}

.hero p {
  color: var(--ne-muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 18px;
}

.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
}

.btn-primary { background: var(--ne-brand); color: #fff; }
.btn-primary:hover { background: var(--ne-brand-dark); }

.btn-outline {
  background: var(--ne-input-bg);
  color: var(--ne-brand);
  border: 2px solid var(--ne-brand);
}

.btn-outline:hover { background: var(--ne-coin-hover); }

.card {
  max-width: 420px;
  margin: 24px auto;
  padding: 24px;
  border: 1px solid var(--ne-card-border);
  border-radius: var(--ne-radius);
  background: var(--ne-card-bg);
}

.card.ex-target,
.card.ex-card-wide,
.card.ref-card,
.card.ref-card-wide,
.card.yt-card-wide,
.card.yt-rules-card,
.yt-wrap .card.yt-card {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.card.ex-target {
  margin-bottom: 16px;
}

.card.ex-card-wide,
.card.ref-card-wide {
  margin-bottom: 16px;
}

.card h3 { margin-bottom: 16px; font-size: 18px; color: var(--ne-text); }

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--ne-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--ne-border-strong);
  font-size: 14px;
  font-family: inherit;
  background: var(--ne-input-bg);
  color: var(--ne-text);
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.hint { font-size: 12px; color: var(--ne-muted); margin-top: 6px; }
.msg-error { color: var(--ne-error); font-size: 13px; margin-top: 8px; }
.msg-ok { color: var(--ne-green); font-size: 13px; margin-top: 8px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.feature {
  border: 1px solid var(--ne-border);
  padding: 16px;
  border-radius: var(--ne-radius);
  background: var(--ne-card-bg);
}

.feature h4 { color: var(--ne-brand); margin-bottom: 8px; font-size: 15px; }
.feature p { color: var(--ne-muted); font-size: 13px; line-height: 1.5; }

code {
  font-size: 12px;
  background: var(--ne-coin-hover);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--ne-border);
}

/* ===== Admin tables ===== */
.table-wrap { overflow-x: auto; margin-top: 12px; }

table.admin {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--ne-text);
}

table.admin th,
table.admin td {
  border: 1px solid var(--ne-border);
  padding: 8px;
  text-align: left;
}

table.admin th { background: var(--ne-table-head); }

.subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.subnav button {
  padding: 8px 14px;
  font-weight: 700;
  border: 1px solid var(--ne-brand);
  background: var(--ne-subnav-bg);
  color: var(--ne-brand);
  cursor: pointer;
  font-family: inherit;
}

.subnav button.active {
  background: var(--ne-brand);
  color: #fff;
}

.panel { display: none; margin-top: 8px; }
.panel.active { display: block; }

/* ===== Admin shell (full panel redesign) ===== */
.admin-page .page-title {
  margin: 0;
  padding: 20px 20px 8px;
  font-size: 22px;
  font-weight: 600;
  text-align: left;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.admin-login-card {
  max-width: 440px !important;
  margin: 0 auto 28px !important;
  padding: 26px 28px !important;
  border-radius: 14px !important;
  border: 1px solid var(--ne-border-strong) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.admin-login-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.admin-shell {
  max-width: 1280px !important;
  padding-bottom: 48px;
}

.admin-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

.admin-alert-error {
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
  color: #ff6b6b;
}

.admin-alert-success {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

#admin-app .subnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  background: var(--ne-input-bg);
}

#admin-app .subnav button {
  padding: 9px 14px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ne-muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

#admin-app .subnav button:hover {
  color: var(--ne-text);
  background: var(--ne-coin-hover);
}

#admin-app .subnav button.active {
  background: var(--ne-brand);
  color: #fff;
  box-shadow: 0 2px 10px rgba(58, 139, 231, 0.35);
}

#admin-app .admin-subnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

#admin-app .admin-subnav button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--ne-border);
  border-radius: 999px;
  background: var(--ne-input-bg);
  color: var(--ne-muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

#admin-app .admin-subnav button:hover {
  color: var(--ne-text);
  border-color: var(--ne-border-strong);
}

#admin-app .admin-subnav button.active {
  background: var(--ne-brand);
  color: #fff;
  border-color: var(--ne-brand);
}

#admin-app .admin-subnav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--ne-coin-hover);
  color: var(--ne-text);
}

#admin-app .admin-subnav button.active .admin-subnav-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

#admin-app .admin-subnav-empty {
  margin: 14px 2px 2px;
  font-size: 13px;
  color: var(--ne-muted);
}

#admin-app .adm-status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

#admin-app .adm-status-open {
  background: rgba(58, 139, 231, 0.16);
  color: #3a8be7;
}

#admin-app .adm-status-closed {
  background: rgba(120, 130, 145, 0.18);
  color: var(--ne-muted);
}

#admin-app .admin-panel.card {
  max-width: none !important;
  width: 100%;
  margin: 0 0 16px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--ne-border);
  background: var(--ne-card-bg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.admin-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ne-brand);
}

.admin-panel-head {
  margin-bottom: 18px;
}

.admin-panel-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.admin-panel-head-compact {
  margin-bottom: 14px;
}

.admin-panel-head .hint {
  margin: 0;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

.admin-stat-card {
  padding: 14px 16px;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  background: var(--ne-input-bg);
}

.admin-stat-card.admin-stat-wide {
  grid-column: 1 / -1;
}

.admin-stat-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ne-muted);
}

.admin-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ne-text);
  line-height: 1.1;
}

.admin-stat-value.admin-stat-text {
  font-size: 18px;
  font-weight: 600;
}

.admin-section-divider {
  margin: 24px 0;
  border: none;
  border-top: 1px solid var(--ne-border);
}

.admin-toolbar-card {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  background: var(--ne-input-bg);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  max-width: 720px;
}

.admin-form-grid .hint,
.admin-form-grid .btn,
.admin-form-grid .admin-save-msg {
  grid-column: 1 / -1;
}

.admin-perm-picker {
  margin: 16px 0 8px;
  padding: 14px 16px;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  background: var(--ne-input-bg);
}

.admin-perm-picker-label {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 14px;
}

.admin-perm-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.admin-perm-group {
  padding-top: 4px;
}

.admin-perm-group-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.admin-perm-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.35;
}

.admin-perm-option input {
  margin-top: 2px;
}

.admin-perm-option.admin-perm-sub {
  margin-left: 18px;
}

.admin-perm-summary {
  font-size: 12px;
  color: var(--ne-muted);
  max-width: 220px;
}

.admin-perm-modal-card {
  max-width: 560px;
}

.admin-maintenance-card {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  background: var(--ne-input-bg);
}

.admin-maintenance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-maintenance-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.admin-maintenance-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ne-border);
  background: var(--ne-card-bg);
  color: var(--ne-muted);
}

.admin-maintenance-badge[data-state="on"] {
  color: #b45309;
  border-color: #f59e0b66;
  background: #f59e0b1a;
}

.admin-stat-maint {
  color: #b45309 !important;
}

.admin-deposit-totals {
  margin-top: 24px;
}

.admin-deposit-totals .admin-panel-head-compact {
  margin-bottom: 12px;
}

.admin-deposit-total-row td {
  border-top: 1px solid var(--ne-border);
  padding-top: 12px;
}

.admin-channel-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-channel-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--ne-border);
  background: var(--ne-input-bg);
}

.admin-channel-card strong {
  display: block;
  font-size: 1.25rem;
  margin: 4px 0;
}

.admin-channel-label {
  font-size: 12px;
  color: var(--ne-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-action-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}

.admin-action-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--ne-border);
  background: var(--ne-input-bg);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}

.admin-action-card:hover {
  border-color: var(--ne-brand);
}

.admin-action-card-warn {
  border-color: #f59e0b66;
  background: #f59e0b12;
}

.admin-action-count {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ne-brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.admin-action-card-warn .admin-action-count {
  background: #f59e0b;
}

.admin-action-label {
  font-size: 13px;
  font-weight: 600;
}

.admin-dep-tab,
.admin-settings-tab {
  padding-top: 16px;
}

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.admin-filter-field {
  min-width: 120px;
  max-width: 180px;
}

.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.admin-badge-pending {
  color: #b45309;
  background: #f59e0b22;
  border: 1px solid #f59e0b55;
}

.admin-badge-confirmed,
.admin-badge-verified,
.admin-badge-completed {
  color: #047857;
  background: #10b98122;
  border: 1px solid #10b98155;
}

.admin-badge-rejected {
  color: #b91c1c;
  background: #ef444422;
  border: 1px solid #ef444455;
}

.admin-badge-processing {
  color: #1d4ed8;
  background: #3b82f622;
  border: 1px solid #3b82f655;
}

.admin-copy-btn {
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid var(--ne-border);
  background: var(--ne-card-bg);
  cursor: pointer;
}

.admin-copy-btn:hover {
  border-color: var(--ne-brand);
}

.admin-user-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--ne-brand);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.admin-pool-health {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--ne-border);
  background: var(--ne-input-bg);
}

.admin-pool-health-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 4px 0;
}

.admin-pool-health-alert {
  margin: 8px 0 0;
  color: #b45309;
  font-size: 12px;
  font-weight: 600;
}

.admin-fp-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.admin-fp-balance-card.is-fp-wd {
  border-color: rgba(59, 130, 246, 0.35);
}

.admin-fp-balance-card small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--ne-muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.admin-fp-balance-card {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--ne-border);
  background: var(--ne-input-bg);
}

.admin-fp-balance-card span {
  display: block;
  font-size: 11px;
  color: var(--ne-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-fp-balance-card strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  word-break: break-all;
}

.admin-fp-balance-usd {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  color: var(--ne-green, #2e7d32);
}

.admin-platform-usd-total {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
  font-size: 14px;
  color: var(--ne-text);
}

.admin-platform-usd-total strong {
  font-size: 16px;
  color: var(--ne-brand, #2563eb);
}

[data-theme="dark"] .admin-fp-balance-usd {
  color: #7dcea0;
}

.admin-stat-warn {
  color: #b45309 !important;
}

@media (max-width: 720px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-channel-totals,
  .admin-fp-balance-grid {
    grid-template-columns: 1fr;
  }
}

#admin-app .admin-table-wrap,
#admin-app .table-wrap.admin-table-wrap {
  margin-top: 0;
  border: 1px solid var(--ne-border);
  border-radius: 10px;
  overflow: hidden;
}

#admin-app .admin-table-wrap-wide,
#admin-app .table-wrap.admin-table-wrap.admin-table-wrap-wide {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

#admin-app .admin-table-wrap-wide table.admin,
#admin-app #tbl-pools {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

#admin-app #tbl-withdraw th:last-child,
#admin-app #tbl-withdraw td:last-child {
  white-space: nowrap;
  position: sticky;
  right: 0;
  z-index: 1;
  background: var(--ne-card-bg, #0f1419);
  box-shadow: -8px 0 12px rgba(0, 0, 0, 0.25);
}

#admin-app #tbl-pools th,
#admin-app #tbl-pools td {
  white-space: nowrap;
  vertical-align: middle;
}

#admin-app #tbl-pools .admin-pool-in {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  padding: 6px 8px;
  font-size: 12px;
}

#admin-app #tbl-pools .admin-pool-in-name { width: 108px; }
#admin-app #tbl-pools .admin-pool-in-host { width: 128px; }
#admin-app #tbl-pools .admin-pool-in-port { width: 58px; }
#admin-app #tbl-pools .admin-pool-in-payout { width: 120px; }
#admin-app #tbl-pools .admin-pool-in-pass { width: 64px; }
#admin-app #tbl-pools .admin-pool-in-coin { width: 52px; }
#admin-app #tbl-pools .admin-pool-in-algo { width: 76px; }
#admin-app #tbl-pools .admin-pool-in-ghs { width: 88px; }

#admin-app #tbl-pools .admin-pool-col-sticky {
  position: sticky;
  z-index: 2;
  background: var(--ne-card-bg);
}

#admin-app #tbl-pools thead .admin-pool-col-sticky {
  background: var(--ne-table-head);
  z-index: 3;
}

#admin-app #tbl-pools tbody tr:hover .admin-pool-col-sticky {
  background: var(--ne-coin-hover);
}

#admin-app #tbl-pools .admin-pool-col-on {
  right: 76px;
  box-shadow: -6px 0 10px rgba(0, 0, 0, 0.12);
}

#admin-app #tbl-pools .admin-pool-col-save {
  right: 0;
  box-shadow: -6px 0 10px rgba(0, 0, 0, 0.12);
}

#admin-app #tbl-pools .btn-pool-save {
  white-space: nowrap;
  min-width: 64px;
}

#admin-app #tbl-pools .admin-pool-preset-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

#admin-app #tbl-pools .admin-pool-preset-btns .btn {
  font-size: 10px;
  padding: 2px 6px;
  line-height: 1.2;
}

#admin-app .admin-pools-scroll-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--ne-muted);
}

#admin-app .admin-pool-type {
  white-space: nowrap;
  font-size: 12px;
}

#admin-app .admin-muted {
  color: var(--ne-muted, #8b95a8);
  font-size: 12px;
}

#admin-app table.admin {
  margin: 0;
  font-size: 13px;
}

#admin-app table.admin th,
#admin-app table.admin td {
  padding: 11px 12px;
  vertical-align: middle;
  border-color: var(--ne-border);
}

#admin-app table.admin th {
  background: var(--ne-table-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ne-muted);
}

#admin-app table.admin tbody tr:hover {
  background: var(--ne-coin-hover);
}

#admin-app table.admin input,
#admin-app table.admin select,
#admin-app table.admin textarea,
#admin-app .form-group input,
#admin-app .form-group select,
#admin-app .form-group textarea,
#admin-app .admin-field {
  border-radius: 8px;
  background: var(--ne-input-bg);
  border: 1px solid var(--ne-border-strong);
  color: var(--ne-text);
}

#admin-app table.admin input:focus,
#admin-app .form-group input:focus,
#admin-app .form-group select:focus,
#admin-app .form-group textarea:focus {
  outline: none;
  border-color: var(--ne-brand);
  box-shadow: 0 0 0 3px rgba(58, 139, 231, 0.18);
}

#admin-app .btn {
  border-radius: 8px;
  font-weight: 600;
}

#admin-app .btn-sm-ex,
#admin-app table.admin .btn {
  padding: 6px 12px;
  font-size: 12px;
}

#admin-app #adm-ticket-view {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  background: var(--ne-input-bg);
}

#admin-app .adm-ticket-reply-box textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--ne-border-strong);
  background: var(--ne-card-bg);
  color: var(--ne-text);
  font-family: inherit;
}

#admin-app .banner-side-card {
  padding: 16px;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  background: var(--ne-input-bg);
}

#admin-app .banner-side-card h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

#admin-app #admin-create-form {
  max-width: 480px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  background: var(--ne-input-bg);
}

#admin-app #fp-balance-out {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--ne-border);
  background: var(--ne-input-bg);
  max-height: 200px;
  overflow: auto;
}

.admin-users-head .hint {
  margin: 0;
}

hr.soft {
  margin: 18px 0;
  border: none;
  border-top: 1px solid var(--ne-border);
}

/* ===== Landing page (home) ===== */
.lp-main { overflow-x: hidden; }

.lp-hero {
  position: relative;
  padding: 48px 24px 56px;
  text-align: center;
  background: linear-gradient(165deg, rgba(58,139,231,0.14) 0%, transparent 55%),
              linear-gradient(195deg, transparent 40%, rgba(58,139,231,0.08) 100%),
              var(--ne-bg);
  border-bottom: 1px solid var(--ne-border);
}

[data-theme="dark"] .lp-hero {
  background: linear-gradient(165deg, rgba(58,139,231,0.18) 0%, transparent 50%),
              linear-gradient(195deg, transparent 45%, rgba(58,139,231,0.1) 100%),
              var(--ne-bg);
}

.lp-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.lp-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ne-brand);
  margin-bottom: 14px;
}

.lp-hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ne-text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.lp-hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ne-muted);
  max-width: 640px;
  margin: 0 auto 28px;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.lp-hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ne-muted);
}

.lp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  border: 1px solid var(--ne-border);
  border-radius: var(--ne-radius);
  background: var(--ne-card-bg);
  overflow: hidden;
}

.lp-stat {
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid var(--ne-border);
}

.lp-stat:last-child { border-right: none; }

.lp-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--ne-brand);
  line-height: 1.2;
}

.lp-stat-label {
  font-size: 12px;
  color: var(--ne-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lp-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px;
}

.lp-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.lp-section-head h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ne-text);
  margin-bottom: 12px;
}

.lp-section-head p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ne-muted);
}

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

.lp-tile {
  border: 1px solid var(--ne-border);
  border-radius: var(--ne-radius);
  padding: 24px 20px;
  background: var(--ne-card-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lp-tile:hover {
  border-color: var(--ne-brand);
  box-shadow: 0 8px 24px rgba(58,139,231,0.12);
}

[data-theme="dark"] .lp-tile:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.lp-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ne-brand), var(--ne-brand-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.lp-tile h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ne-text);
  margin-bottom: 8px;
}

.lp-tile p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ne-muted);
}

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: lpstep;
}

.lp-step {
  position: relative;
  padding: 24px 20px 24px 56px;
  border: 1px solid var(--ne-border);
  border-radius: var(--ne-radius);
  background: var(--ne-card-bg);
}

.lp-step::before {
  counter-increment: lpstep;
  content: counter(lpstep);
  position: absolute;
  left: 18px;
  top: 22px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ne-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ne-text);
}

.lp-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ne-muted);
}

.lp-strip {
  text-align: center;
  padding: 20px 24px;
  font-size: 14px;
  color: var(--ne-muted);
  border-top: 1px solid var(--ne-border);
  border-bottom: 1px solid var(--ne-border);
  background: var(--ne-card-bg);
}

.lp-cta {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  text-align: center;
}

.lp-cta-box {
  padding: 36px 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ne-brand) 0%, var(--ne-brand-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 40px rgba(58,139,231,0.35);
}

.lp-cta-box h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.lp-cta-box p {
  font-size: 15px;
  opacity: 0.95;
  margin-bottom: 22px;
  line-height: 1.5;
}

.lp-cta-box .btn-primary {
  background: #fff;
  color: var(--ne-brand-dark);
}

.lp-cta-box .btn-primary:hover {
  background: #f0f4ff;
}

.lp-cta-box .btn-outline {
  border-color: rgba(255,255,255,0.85);
  color: #fff;
  background: transparent;
}

.lp-cta-box .btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

.lp-footer {
  padding: 28px 24px 36px;
  text-align: center;
  font-size: 13px;
  color: var(--ne-muted);
  border-top: 1px solid var(--ne-border);
}

.lp-footer nav {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.lp-footer a {
  font-weight: 700;
  color: var(--ne-muted);
  text-decoration: none;
}

.lp-footer a:hover {
  color: var(--ne-brand);
  text-decoration: underline;
}

.site-footer {
  margin-top: auto;
  padding: 24px 20px 32px;
  text-align: center;
  font-size: 12px;
  color: var(--ne-muted);
  border-top: 1px solid var(--ne-border);
  line-height: 1.65;
}

.site-footer strong {
  color: var(--ne-text);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.site-footer-platform {
  margin-top: 6px !important;
  font-size: 11px;
  letter-spacing: 0.02em;
}

body:not(.admin-page) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:not(.admin-page) > .site-footer,
body:not(.admin-page) > footer.site-footer,
body:not(.admin-page) > footer.lp-footer {
  margin-top: auto;
}

@media (max-width: 900px) {
  .lp-stats { grid-template-columns: 1fr; }
  .lp-stat { border-right: none; border-bottom: 1px solid var(--ne-border); }
  .lp-stat:last-child { border-bottom: none; }
  .lp-grid, .lp-steps { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .coin {
    flex: 0 0 calc((100% - 2 * 12px) / 3);
    max-width: calc((100% - 2 * 12px) / 3);
  }
  .grid-row-4 .coin,
  .grid-row-5 .coin,
  .grid-row-pair .coin {
    flex: 0 0 calc((100% - 2 * 12px) / 3);
    max-width: calc((100% - 2 * 12px) / 3);
  }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .coin {
    flex: 0 0 calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
  .grid-row-4 .coin,
  .grid-row-5 .coin,
  .grid-row-pair .coin {
    flex: 0 0 calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
  .nav { gap: 10px; }
  .nav a { font-size: 13px; }
  .logo { font-size: 22px; }
  .topbar { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .topbar .left { grid-column: 1; text-align: center; }
  .topbar .mid { grid-column: 1; text-align: center; white-space: normal; }
}

@media (max-width: 480px) {
  .grid-row-pair .coin {
    flex: 0 0 100%;
    max-width: 100%;
  }

  body:not(.admin-page) .coins-board {
    padding: 12px 10px;
  }

  .coin-bal,
  .coin-power,
  .coin-price,
  .coin-usd {
    font-size: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ===== Skeleton loading ===== */
.skeleton {
  background: linear-gradient(90deg, var(--ne-border) 25%, var(--ne-card-bg) 50%, var(--ne-border) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: var(--ne-radius);
  display: inline-block;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Balance update pulse ===== */
.balance-updating {
  animation: balance-pulse 0.45s ease;
}

@keyframes balance-pulse {
  0%, 100% { opacity: 1; }
  40% { opacity: 0.3; }
}

/* ===== Fade-in for cards ===== */
.fade-in {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Account history ===== */
.hist-wrap {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.hist-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 12px;
}

.hist-filter {
  padding: 8px 14px;
  font-weight: 700;
  border: 1px solid var(--ne-brand);
  background: var(--ne-subnav-bg);
  color: var(--ne-brand);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

.hist-filter.active {
  background: var(--ne-brand);
  color: #fff;
}

.hist-summary {
  margin: 0 0 12px;
  color: var(--ne-muted);
  font-size: 14px;
}

.hist-empty {
  margin-top: 16px;
}

.hist-date { white-space: nowrap; font-size: 13px; }

.hist-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ne-table-head);
  font-size: 12px;
  font-weight: 700;
}

.hist-title { font-weight: 700; }

.hist-detail {
  color: var(--ne-muted);
  font-size: 13px;
  max-width: 280px;
  word-break: break-word;
}

.hist-amount {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  white-space: nowrap;
}

.hist-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.hist-status-ok { background: rgba(46, 125, 50, 0.15); color: #2e7d32; }
.hist-status-pending { background: rgba(237, 108, 2, 0.15); color: #ed6c02; }
.hist-status-bad { background: rgba(211, 47, 47, 0.15); color: #d32f2f; }
.hist-status-neutral { background: var(--ne-table-head); color: var(--ne-muted); }

html.dash-prices-loading .coin-price,
html.dash-prices-loading #totalLine {
  color: var(--ne-muted);
}

/* ===== Side banner slots (120×600 desktop) + mobile (320×50) ===== */
.ne-side-banner {
  display: none;
  position: fixed;
  top: 96px;
  width: 120px;
  z-index: 99998;
  pointer-events: auto;
}

.ne-side-banner[data-ne-direct="1"] {
  background: transparent;
  box-shadow: none;
}

.ne-side-banner[data-ne-direct="1"] > div[id="frame"],
.ne-side-banner[data-ne-direct="1"] iframe {
  display: block;
}

.ne-side-slot-card {
  width: 120px;
  height: 600px;
  box-sizing: border-box;
  border: 1px dashed var(--ne-border);
  border-radius: 10px;
  background: var(--ne-card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ne-mondiad-banner-slot[data-mndbanid],
.ne-side-slot-card .ne-mondiad-banner-slot,
.ne-side-slot-card [data-mndbanid] {
  width: 100%;
  min-height: 600px;
}

.ne-side-slot-card iframe,
.ne-mondiad-banner-slot iframe {
  display: block;
  max-width: 100%;
}

/* Mondiad banner zones (300×250, 728×90, etc.) — not locked to legacy 120×600 A-ADS */
body.ne-has-mondiad-banners {
  --ne-slot-w: 300px;
}

body.ne-has-mondiad-banners .ne-side-banner[data-mondiad="1"] {
  width: 300px;
  max-width: min(336px, calc(50vw - 24px));
}

body.ne-has-mondiad-banners .ne-side-banner[data-mondiad="1"] .ne-side-slot-card {
  width: 100%;
  height: auto;
  min-height: 250px;
  max-height: none;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  display: block;
}

body.ne-has-mondiad-banners .ne-side-slot-card .ne-mondiad-banner-slot,
body.ne-has-mondiad-banners .ne-side-slot-card [data-mndbanid],
body.ne-has-mondiad-banners .ne-side-banner[data-mondiad="1"] > [data-mndbanid] {
  width: 100%;
  min-height: 250px;
  display: block;
}

body.ne-has-mondiad-banners .ne-side-slot-card iframe,
body.ne-has-mondiad-banners .ne-side-slot-card .ne-side-slot-iframe,
body.ne-has-mondiad-banners .ne-side-banner[data-mondiad="1"] iframe {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 0 auto;
}

.ne-side-slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px;
  gap: 4px;
  pointer-events: none;
  user-select: none;
}

.ne-side-slot-icon {
  font-size: 28px;
  line-height: 1;
  opacity: 0.35;
  margin-bottom: 4px;
}

.ne-side-slot-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ne-text);
  opacity: 0.7;
}

.ne-side-slot-size {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ne-muted);
  margin-top: 2px;
}

.ne-side-slot-hint {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ne-muted);
  opacity: 0.65;
  margin-top: 6px;
}

.ne-side-slot-card .ne-side-slot-iframe,
.ne-side-slot-card iframe {
  position: absolute;
  inset: 0;
  width: 120px !important;
  height: 600px !important;
  max-width: 120px;
  max-height: 600px;
  border: 0;
  display: block;
  margin: 0;
  z-index: 2;
  background: transparent;
}

.ne-side-slot-card > div[id="frame"] {
  position: absolute;
  inset: 0;
  width: 120px;
  height: 600px;
  margin: 0;
}

.ne-side-slot-card > div[id="frame"] iframe {
  position: static;
  width: 120px !important;
  height: 600px !important;
  max-width: 120px;
  max-height: 600px;
}

/* Mobile banner — fixed bottom, visible on small screens only */
.ne-mobile-banner {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 320px;
  max-width: calc(100vw - 16px);
  height: 50px;
  z-index: 99997;
  pointer-events: auto;
}

.ne-mobile-banner-card {
  width: 320px;
  max-width: 100%;
  height: 50px;
  box-sizing: border-box;
  border: 1px dashed var(--ne-border);
  border-radius: 8px 8px 0 0;
  background: var(--ne-card);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ne-mobile-banner-card .ne-mobile-slot-iframe,
.ne-mobile-banner-card iframe {
  width: 320px !important;
  height: 50px !important;
  max-width: 100%;
  border: 0;
  display: block;
  margin: 0 auto;
  background: transparent;
}

.ne-mobile-banner-card > div[id="frame-mobile"],
.ne-mobile-banner-card > div[id="frame"] {
  width: 320px;
  max-width: 100%;
  height: 50px;
  margin: 0 auto;
}

.ne-mobile-slot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  font-size: 10px;
  font-weight: 600;
  color: var(--ne-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

body.ne-has-mobile-banner {
  padding-bottom: 58px;
}

/* Placeholder always visible — iframe overlays when live ads are enabled */

/* Content column is max 1200px centered — slots sit just outside it */
:root {
  --ne-content-max: 1320px;
  --ne-slot-w: 120px;
  --ne-slot-gap: 24px;
  --ne-slot-offset: calc(var(--ne-content-max) / 2 + var(--ne-slot-w) + var(--ne-slot-gap));
  --ne-mobile-banner-h: 50px;
  --ne-page-max: var(--ne-content-max);
}

@media (min-width: 1024px) {
  .ne-side-banner {
    display: block !important;
  }
  .ne-side-banner-left {
    left: max(16px, calc(50% - var(--ne-slot-offset)));
  }
  .ne-side-banner-right {
    right: max(16px, calc(50% - var(--ne-slot-offset)));
  }
  .ne-mobile-banner {
    display: none !important;
  }
  body.ne-has-mobile-banner {
    padding-bottom: 0;
  }

  /* Mondiad side banners need wider gutters than legacy 120px A-ADS */
  body.ne-has-mondiad-banners.ne-has-side-banner-left.ne-has-side-banner-right:not(.admin-page) {
    --ne-content-ads-max: 1280px;
    --ne-slot-w: 280px;
    --ne-slot-offset: calc(var(--ne-content-ads-max) / 2 + var(--ne-slot-w) + var(--ne-slot-gap));
    --ne-page-max: min(
      var(--ne-content-ads-max),
      max(1080px, calc(100vw - 2 * (var(--ne-slot-w) + var(--ne-slot-gap) + 8px)))
    );
  }

  body.ne-has-mondiad-banners.ne-has-side-banner-left:not(.ne-has-side-banner-right):not(.admin-page),
  body.ne-has-mondiad-banners.ne-has-side-banner-right:not(.ne-has-side-banner-left):not(.admin-page) {
    --ne-content-ads-max: 1080px;
    --ne-slot-w: 300px;
    --ne-slot-offset: calc(var(--ne-content-ads-max) / 2 + var(--ne-slot-w) + var(--ne-slot-gap));
    --ne-page-max: min(
      var(--ne-content-ads-max),
      calc(100vw - (var(--ne-slot-w) + var(--ne-slot-gap) + 32px))
    );
  }

  /* ~90% scale feel at 100% zoom — content sits cleanly between 120×600 side ads */
  body.ne-has-side-banner-left.ne-has-side-banner-right:not(.admin-page):not(.ne-has-mondiad-banners) {
    --ne-content-ads-max: 1080px;
    --ne-slot-offset: calc(var(--ne-content-ads-max) / 2 + var(--ne-slot-w) + var(--ne-slot-gap));
    --ne-page-max: min(
      var(--ne-content-ads-max),
      calc(100vw - 2 * (var(--ne-slot-w) + var(--ne-slot-gap) + 16px))
    );
  }

  body.ne-has-side-banner-left:not(.ne-has-side-banner-right):not(.admin-page):not(.ne-has-mondiad-banners),
  body.ne-has-side-banner-right:not(.ne-has-side-banner-left):not(.admin-page):not(.ne-has-mondiad-banners) {
    --ne-content-ads-max: 1140px;
    --ne-slot-offset: calc(var(--ne-content-ads-max) / 2 + var(--ne-slot-w) + var(--ne-slot-gap));
    --ne-page-max: min(
      var(--ne-content-ads-max),
      calc(100vw - (var(--ne-slot-w) + var(--ne-slot-gap) + 32px))
    );
  }

  body.ne-has-side-banners:not(.admin-page) .coins-board {
    padding: 14px 16px;
  }

  body.ne-has-side-banners:not(.admin-page) .dash-action-icon svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 1023px) {
  .ne-side-banner {
    display: none !important;
  }
  .ne-mobile-banner {
    display: block !important;
  }
}

/* Admin — page banners panel */
.banner-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .banner-admin-grid {
    grid-template-columns: 1fr;
  }
}

.banner-side-card {
  border: 1px solid var(--ne-border);
  border-radius: 8px;
  padding: 16px;
  background: var(--ne-card);
}

.banner-side-card h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.banner-html-input {
  width: 100%;
  min-height: 180px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  padding: 10px;
  border: 1px solid var(--ne-border);
  border-radius: 6px;
  background: var(--ne-bg);
  color: var(--ne-text);
  resize: vertical;
}

.banner-mobile-card {
  grid-column: 1 / -1;
}

.banner-mobile-card .banner-html-input {
  min-height: 120px;
}

.banner-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 8px;
}

.banner-page-toolbar .form-group {
  margin: 0;
  min-width: 220px;
}

/* ===== User app shell (dashboard, auth, account pages) ===== */
body:not(.admin-page) {
  --ne-page-max: var(--ne-content-max);
}

[data-theme="dark"] body:not(.admin-page) {
  background: linear-gradient(180deg, #0e1014 0%, var(--ne-bg) 140px);
}

body:not(.admin-page) .header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

body:not(.admin-page) .logo-mark {
  border-radius: 10px;
}

body:not(.admin-page) .nav a {
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

body:not(.admin-page) .nav a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
}

body:not(.admin-page) .nav a.active {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
}

body:not(.admin-page) .btn-theme {
  border-radius: 8px;
}

body:not(.admin-page) .page-notice {
  max-width: var(--ne-page-max);
  margin: 0 auto;
  padding: 10px 20px 0;
  text-align: left;
  font-size: 13px;
}

body:not(.admin-page) .page-title {
  max-width: var(--ne-page-max);
  margin: 0 auto;
  padding: 18px 20px 10px;
  text-align: left;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body:not(.admin-page) .topbar {
  max-width: var(--ne-page-max);
  margin: 0 auto 16px;
  padding: 14px 18px;
  border: 1px solid var(--ne-border);
  border-radius: var(--ne-radius-lg);
  background: var(--ne-card-bg);
  box-shadow: var(--ne-shadow);
}

body:not(.admin-page) .topbar select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--ne-border);
  font-weight: 600;
}

body:not(.admin-page) .coins-board {
  max-width: var(--ne-page-max);
  margin: 0 auto 12px;
  padding: 16px;
  border: 1px solid var(--ne-border);
  border-radius: var(--ne-radius-lg);
  background: var(--ne-card-bg);
  box-shadow: var(--ne-shadow);
}

body:not(.admin-page) .coins-board-head {
  padding: 6px 8px 14px;
  margin: -2px 0 10px;
  border-bottom-color: var(--ne-border);
}

body:not(.admin-page) .coins-board-total {
  font-size: 18px;
  letter-spacing: -0.01em;
}

body:not(.admin-page) .coins-footer {
  max-width: var(--ne-page-max);
  padding: 0 20px 8px;
  margin-bottom: 12px;
}

body:not(.admin-page) .coin {
  background: var(--ne-input-bg);
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  padding: 18px 12px 20px;
}

body:not(.admin-page) .coin[data-mineable="1"]:hover {
  background: var(--ne-coin-hover);
  border-color: var(--ne-border-strong);
}

body:not(.admin-page) .dash-actions {
  box-sizing: border-box;
  width: min(1680px, calc(100vw - 32px));
  max-width: none;
  margin: 0 auto 16px;
  padding: 12px 10px;
  border-radius: var(--ne-radius-lg);
  background: linear-gradient(135deg, var(--ne-brand) 0%, var(--ne-brand-dark) 100%);
  box-shadow: 0 8px 24px rgba(58, 139, 231, 0.32);
}

body:not(.admin-page) .dash-action {
  border-radius: 10px;
  padding: 6px 4px;
}

body:not(.admin-page) .dash-action-active {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 10px;
}

@media (min-width: 1024px) {
  body.ne-has-side-banner-left.ne-has-side-banner-right:not(.admin-page) .dash-actions {
    width: min(
      1680px,
      calc(100vw - 2 * (var(--ne-slot-w) + var(--ne-slot-gap) + 16px))
    );
  }

  body.ne-has-side-banner-left:not(.ne-has-side-banner-right):not(.admin-page) .dash-actions,
  body.ne-has-side-banner-right:not(.ne-has-side-banner-left):not(.admin-page) .dash-actions {
    width: min(
      1680px,
      calc(100vw - (var(--ne-slot-w) + var(--ne-slot-gap) + 32px))
    );
  }
}

body:not(.admin-page) .cloud-info-card {
  max-width: 480px;
  margin: 0 auto 48px;
  padding: 20px 24px;
  border: 1px solid var(--ne-border);
  border-radius: var(--ne-radius-lg);
  background: var(--ne-card-bg);
  box-shadow: var(--ne-shadow);
}

body:not(.admin-page) .cloud-info-title {
  font-size: 17px;
  letter-spacing: -0.01em;
}

body:not(.admin-page) .card {
  max-width: 440px;
  margin: 8px auto 32px;
  padding: 28px;
  border-radius: var(--ne-radius-lg);
  border: 1px solid var(--ne-border);
  background: var(--ne-card-bg);
  box-shadow: var(--ne-shadow-lg);
}

body:not(.admin-page) .card h3 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body:not(.admin-page) .card.ex-target,
body:not(.admin-page) .card.ex-card-wide,
body:not(.admin-page) .card.ref-card,
body:not(.admin-page) .card.ref-card-wide,
body:not(.admin-page) .card.earn-card,
body:not(.admin-page) .card.earn-card-wide,
body:not(.admin-page) .card.yt-card-wide,
body:not(.admin-page) .card.yt-rules-card,
body:not(.admin-page) .yt-wrap .card.yt-card {
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body:not(.admin-page) .form-group label {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

body:not(.admin-page) .form-group input,
body:not(.admin-page) .form-group select,
body:not(.admin-page) .form-group textarea {
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ne-border);
  transition: border-color 0.15s, box-shadow 0.15s;
}

body:not(.admin-page) .form-group input:focus,
body:not(.admin-page) .form-group select:focus,
body:not(.admin-page) .form-group textarea:focus {
  outline: none;
  border-color: var(--ne-brand);
  box-shadow: 0 0 0 3px rgba(58, 139, 231, 0.18);
}

body:not(.admin-page) .btn {
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s;
}

body:not(.admin-page) .btn-primary {
  box-shadow: 0 4px 14px rgba(58, 139, 231, 0.35);
}

body:not(.admin-page) .btn-primary:hover {
  box-shadow: 0 6px 18px rgba(58, 139, 231, 0.42);
}

body:not(.admin-page) .btn-outline {
  border-radius: 8px;
}

body:not(.admin-page) .table-wrap {
  margin-top: 0;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ne-card-bg);
  box-shadow: var(--ne-shadow);
}

body:not(.admin-page) table {
  border-collapse: collapse;
  width: 100%;
}

body:not(.admin-page) table th {
  background: var(--ne-table-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ne-muted);
}

body:not(.admin-page) table th,
body:not(.admin-page) table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--ne-border);
}

body:not(.admin-page) table tr:last-child td {
  border-bottom: none;
}

body:not(.admin-page) .hist-wrap,
body:not(.admin-page) .ref-wrap,
body:not(.admin-page) .ex-wrap,
body:not(.admin-page) .sup-wrap,
body:not(.admin-page) .cpl-wrap,
body:not(.admin-page) .dep-wrap,
body:not(.admin-page) .earn-wrap {
  max-width: var(--ne-page-max);
}

body:not(.admin-page) .hist-filter {
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

body:not(.admin-page) .hist-filter.active {
  box-shadow: 0 2px 10px rgba(58, 139, 231, 0.3);
}

body:not(.admin-page) .ref-summary {
  gap: 12px;
}

body:not(.admin-page) .ref-stat {
  border-radius: 12px;
  border: 1px solid var(--ne-border);
  background: var(--ne-card-bg);
  box-shadow: var(--ne-shadow);
}

body:not(.admin-page) .cpl-shell,
body:not(.admin-page) .dep-shell {
  border-radius: var(--ne-radius-lg);
  box-shadow: var(--ne-shadow);
}

body:not(.admin-page) .sup-grid > .card {
  max-width: none;
  margin: 0;
}

body:not(.admin-page) .lp-tile {
  border-radius: var(--ne-radius-lg);
  box-shadow: var(--ne-shadow);
}

body:not(.admin-page) .lp-stats {
  border-radius: var(--ne-radius-lg);
  box-shadow: var(--ne-shadow);
}

body:not(.admin-page) .lp-cta {
  border-radius: var(--ne-radius-lg);
}

@media (max-width: 720px) {
  body:not(.admin-page) .page-title {
    font-size: 20px;
    padding-top: 14px;
  }

  body:not(.admin-page) .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }

  body:not(.admin-page) .topbar .left,
  body:not(.admin-page) .topbar .mid {
    grid-column: 1;
    text-align: left;
    white-space: normal;
  }

  body:not(.admin-page) .dash-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  body:not(.admin-page) .dash-action {
    flex: 0 0 calc(33.333% - 8px);
    min-width: 88px;
  }
}

/* ===== Mondiad side slots (wrapper + native mndbanid div inside) ===== */
.ne-mondiad-wrap {
  display: none;
  position: fixed;
  top: 88px;
  width: 300px;
  max-width: min(336px, calc(50vw - 20px));
  z-index: 99990;
  pointer-events: auto;
}

.ne-mondiad-wrap-left {
  left: max(8px, calc(50% - 660px));
}

.ne-mondiad-wrap-right {
  right: max(8px, calc(50% - 660px));
}

.ne-mondiad-wrap > [data-mndbanid] {
  display: block;
  width: 100%;
  min-height: 250px;
}

.ne-mondiad-wrap iframe {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  body.ne-has-mondiad .ne-mondiad-wrap {
    display: block;
  }

  body.ne-has-mondiad-left.ne-has-mondiad-right:not(.admin-page) {
    --ne-page-max: min(1320px, max(1080px, calc(100vw - 480px)));
  }

  body.ne-has-mondiad-left:not(.ne-has-mondiad-right):not(.admin-page),
  body.ne-has-mondiad-right:not(.ne-has-mondiad-left):not(.admin-page) {
    --ne-page-max: min(1320px, max(1120px, calc(100vw - 300px)));
  }
}

/* ===== Leaderboard ===== */
.lb-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.lb-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.lb-stat {
  background: var(--ne-card);
  border: 1px solid var(--ne-border);
  border-radius: var(--ne-radius-lg);
  padding: 16px 18px;
  text-align: center;
}

.lb-stat-highlight {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.lb-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ne-muted);
  margin-bottom: 8px;
}

.lb-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ne-text);
}

.lb-stat-ghs { color: #38bdf8; }
.lb-stat-users { color: #fb923c; }
.lb-stat-rank { color: #4ade80; }

.lb-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
  min-height: 200px;
}

.lb-podium-card {
  background: var(--ne-card);
  border: 1px solid var(--ne-border);
  border-radius: var(--ne-radius-lg);
  padding: 18px 14px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lb-podium-1 {
  border-color: rgba(251, 146, 60, 0.55);
  box-shadow: 0 8px 28px rgba(251, 146, 60, 0.12);
  transform: translateY(-8px);
}

.lb-podium-2 { border-color: rgba(148, 163, 184, 0.45); }
.lb-podium-3 { border-color: rgba(180, 83, 9, 0.35); }

.lb-podium-rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--ne-muted);
}

.lb-podium-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.lb-podium-value {
  font-size: 14px;
  color: #38bdf8;
  font-weight: 600;
}

.lb-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lb-tab {
  border: 1px solid var(--ne-border-strong);
  background: var(--ne-card);
  color: var(--ne-text);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lb-tab-active {
  border-color: var(--ne-brand);
  color: var(--ne-brand);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.lb-card-wide { margin: 0; }

.lb-table .lb-rank {
  font-weight: 700;
  color: #fb923c;
  white-space: nowrap;
}

.lb-table .lb-value {
  color: #38bdf8;
  font-weight: 600;
  white-space: nowrap;
}

.lb-row-top td { background: rgba(251, 146, 60, 0.06); }

.lb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.lb-avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.lb-avatar-fallback {
  background: linear-gradient(135deg, #1e3a5f, #0ea5e9);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.lb-avatar-col { width: 56px; text-align: center; }

.lb-user-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lb-name { font-weight: 600; }

.lb-yt-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lb-yt-icon { display: block; }

/* ===== Profile avatar ===== */
.profile-avatar-block {
  max-width: 560px;
  margin: 0 auto 16px;
  text-align: center;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.profile-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ne-border-strong);
  background: var(--ne-card);
}

.profile-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1e3a5f, #0ea5e9);
}

.profile-avatar-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-avatar-msg {
  margin-top: 10px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .lb-summary { grid-template-columns: 1fr; }
  .lb-podium {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .lb-podium-1 { transform: none; order: -1; }
}

/* ===== Admin impersonation preview bar ===== */
.impersonate-bar {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 8px 16px;
  background: #b45309;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.impersonate-end-btn {
  border-color: rgba(255, 255, 255, 0.65) !important;
  color: #fff !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
}

.admin-backup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-backup-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-backup-upload-btn {
  cursor: pointer;
  margin: 0;
}

.admin-backup-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.admin-backup-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-backup-card,
.admin-backup-warn {
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  padding: 16px;
  background: var(--ne-card-bg);
}

.admin-backup-warn {
  border-color: #f59e0b55;
  background: #f59e0b12;
}

.admin-backup-card h4,
.admin-backup-warn h4,
.admin-backup-list-head h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.admin-backup-generate-btn {
  width: 100%;
}

.admin-backup-main {
  min-width: 0;
}

.admin-backup-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-backup-file-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.admin-backup-file-cell strong {
  font-size: 13px;
  word-break: break-all;
}

.admin-backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

@media (max-width: 960px) {
  .admin-backup-layout {
    grid-template-columns: 1fr;
  }
}

/* Admin — tutorials marker editor */
.admin-tut-card {
  max-width: 1100px;
}

.admin-tut-editor-grid {
  display: grid;
  gap: 12px 16px;
  margin-top: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.admin-tut-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0 8px;
}

.admin-tut-upload-btn {
  cursor: pointer;
  margin: 0;
}

.admin-tut-stage-wrap {
  margin-top: 12px;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  overflow: auto;
  background: #0b0f14;
  max-height: 70vh;
}

.admin-tut-stage {
  position: relative;
  display: inline-block;
  min-width: 100%;
  line-height: 0;
}

.admin-tut-stage img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.admin-tut-marker {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  cursor: grab;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  touch-action: none;
}

.admin-tut-marker.is-dragging {
  cursor: grabbing;
  z-index: 5;
}

.admin-tut-marker-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.admin-tut-marker-fields {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  max-width: 520px;
}

.admin-tut-marker-row {
  display: grid;
  grid-template-columns: 48px 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.admin-tut-marker-remove {
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.admin-tut-marker-row label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ne-muted);
}

.admin-tut-marker-row input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--ne-border);
  border-radius: 8px;
  background: var(--ne-card-bg);
  color: var(--ne-text);
  font-size: 13px;
}

