.numbers-page { max-width: 560px; margin: 0 auto; padding: 16px 14px 32px; }
.np-hero {
  background: linear-gradient(145deg, #4f46e5 0%, #7c3aed 55%, #2563eb 100%);
  color: #fff; border-radius: 20px; padding: 18px 16px 16px; margin-bottom: 14px;
  box-shadow: 0 12px 28px rgba(79,70,229,.28);
}
.np-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin: 0 0 4px; }
.np-hero h1 { margin: 0 0 6px; font-size: 1.45rem; font-weight: 800; }
.np-lead { margin: 0; font-size: .9rem; line-height: 1.45; opacity: .92; }
.np-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.np-stat {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 10px 8px; text-align: center;
}
.np-stat strong { display: block; font-size: 1.05rem; }
.np-stat span { font-size: .72rem; opacity: .9; }
.np-balance {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 16px; margin-bottom: 14px;
  background: var(--bg-elevated, #fff); border: 1px solid var(--border);
}
[data-theme="dark"] .np-balance { background: #121212; }
.np-balance-left { display: flex; align-items: center; gap: 10px; }
.np-balance-icon {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(79,70,229,.12); color: #4f46e5;
}
.np-balance-label { display: block; font-size: .72rem; color: var(--text-muted); }
.np-balance strong { font-size: 1.05rem; }
.np-topup-btn { height: 38px; padding: 0 14px; width: auto; border-radius: 10px; }
.np-login-hint {
  padding: 12px 14px; border-radius: 14px; margin-bottom: 14px;
  background: rgba(79,70,229,.08); border: 1px solid rgba(79,70,229,.2); font-size: .9rem;
}
.np-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.np-step {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--bg-elevated, #fff);
}
[data-theme="dark"] .np-step { background: #121212; }
.np-step-num {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #4f46e5; color: #fff; font-size: .8rem; font-weight: 800;
}
.np-step strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.np-step p { margin: 0; font-size: .8rem; color: var(--text-muted); line-height: 1.35; }
.np-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 8px; }
.np-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elevated, #fff);
  font-size: .8rem; font-weight: 600; color: var(--text-muted); cursor: pointer;
}
.np-chip.active { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.search-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: 8px; }
.country-item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg-elevated, #fff); cursor: pointer; margin-bottom: 8px;
  color: inherit; font: inherit; transition: border-color .18s, box-shadow .18s, transform .15s;
}
.country-item:active { transform: scale(0.985); }
.country-item:hover, .country-item:focus-visible {
  border-color: #a5b4fc; box-shadow: 0 4px 14px rgba(79,70,229,.12); outline: none;
}
[data-theme="dark"] .country-item { background: #121212; }
/* Professional country flag */
.flag-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0,0,0,.08),
    0 4px 12px rgba(0,0,0,.06),
    inset 0 0 0 1px rgba(0,0,0,.06);
  background: var(--bg-soft);
  position: relative;
}
.flag-wrap .country-flag,
.country-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px;
}
[data-theme="dark"] .flag-wrap {
  box-shadow:
    0 1px 2px rgba(0,0,0,.3),
    0 4px 14px rgba(0,0,0,.25),
    inset 0 0 0 1px rgba(255,255,255,.08);
}
/* Fallback text badge (JS legacy / missing flag) */
.flag-badge {
  width: 48px; height: 36px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; letter-spacing: .03em;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff); color: #3730a3; border: 1px solid #c7d2fe;
}
[data-theme="dark"] .flag-badge {
  background: linear-gradient(145deg, #1e1b4b, #312e81); color: #c7d2fe; border-color: #4338ca;
}
.country-item .info { flex: 1; min-width: 0; }
.country-item .info strong { display: block; font-size: .95rem; font-weight: 700; }
.qty-line { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.np-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.np-dot.ok { background: #22c55e; }
.np-dot.off { background: #a1a1aa; }
.country-item .price { font-weight: 800; white-space: nowrap; font-size: .95rem; }
.np-chevron { color: var(--text-muted); display: flex; }
.np-empty { text-align: center; padding: 40px 16px; color: var(--text-muted); }
.np-empty svg { margin-bottom: 10px; opacity: .6; }
.np-modal { text-align: center; }
.np-modal-flag {
  width: 64px; height: 48px; margin: 0 auto 12px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.12), inset 0 0 0 1px rgba(0,0,0,.06);
  background: var(--bg-soft);
}
.np-modal-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }

.np-modal-icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.np-modal-icon.accent { background: rgba(79,70,229,.12); color: #4f46e5; border-color: transparent; }
.np-modal-icon.success { background: rgba(34,197,94,.12); color: #16a34a; border-color: transparent; }
.np-buy-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 12px; text-align: left; }
.np-buy-meta > div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft); }
.np-buy-meta span { display: block; font-size: .72rem; color: var(--text-muted); }
.np-hint-box {
  display: flex; gap: 10px; text-align: left; padding: 12px;
  border-radius: 12px; background: rgba(79,70,229,.08); border: 1px solid rgba(79,70,229,.18);
  margin-bottom: 12px; font-size: .85rem; line-height: 1.4; color: var(--text-secondary);
}
.np-hint-box svg { flex-shrink: 0; color: #4f46e5; margin-top: 2px; }
.np-hint-box p { margin: 0; }
.np-error { background: rgba(239,68,68,.12); color: #b91c1c; padding: 10px; border-radius: 10px; font-size: .88rem; margin-bottom: 10px; text-align: left; }
.np-code-help { font-size: .85rem; color: var(--text-muted); margin: 0 0 8px; }
.np-code-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.np-code-actions .btn { width: auto; min-width: 120px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.search-box-full { position: relative; margin-top: 4px; }
.search-box-full input { padding-right: 44px; }
.search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; }
@media (max-width: 575.98px) {
  .np-stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .np-steps { flex-direction: column; gap: 8px; }
  .np-buy-meta { grid-template-columns: 1fr; }
  .np-code-actions { flex-direction: column; }
  .np-code-actions .btn { width: 100%; }
}
@media (min-width: 576px) {
  .np-steps { display: flex; gap: 12px; }
}
@media (min-width: 992px) {
  .country-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

.np-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 40px 16px; color: var(--text-muted); font-size: .9rem;
}
.np-spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: #4f46e5; border-radius: 50%;
  animation: np-spin .7s linear infinite;
}
@keyframes np-spin { to { transform: rotate(360deg); } }
.country-item:disabled, .country-item.is-disabled {
  opacity: .55; cursor: not-allowed; pointer-events: none;
}
