
/* NumberHub dashboard refresh */
:root{--nh-navy:#102a43;--nh-blue:#1769aa;--nh-ink:#172b4d;--nh-muted:#66768a;--nh-line:#e6edf4;--nh-bg:#f4f7fb;--nh-green:#16805d}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--nh-bg);color:var(--nh-ink)}
header{background:var(--nh-navy);color:#fff;padding:.85rem clamp(1rem,3vw,2.4rem);display:flex;flex-wrap:wrap;gap:.8rem 1.4rem;align-items:center;box-shadow:0 5px 20px #102a431c}
header a{color:#fff;text-decoration:none}.brand{font-weight:850;font-size:1.35rem;letter-spacing:-.04em}
nav{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center}nav a{font-size:.91rem;opacity:.9}nav a:hover{opacity:1;text-decoration:underline}
nav form{margin:0}main{max-width:1240px;margin:0 auto;padding:clamp(1rem,3vw,2rem)}
.card,.nh-panel{background:#fff;border:1px solid var(--nh-line);border-radius:18px;padding:1.25rem;margin:.9rem 0;box-shadow:0 8px 28px #16324f08}
h1,h2,p{margin-top:0}h2{font-size:1.15rem;letter-spacing:-.025em;margin-bottom:.4rem}p{color:var(--nh-muted);line-height:1.55}
.nh-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:2rem;padding:clamp(1.5rem,4vw,3rem);border-radius:24px;background:linear-gradient(120deg,#102a43,#174e78 65%,#1976a5);color:#fff;box-shadow:0 15px 36px #143e5a26}
.nh-hero-copy{position:relative;z-index:2;max-width:650px}.nh-eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.14em;color:#69d4d1}.nh-hero h1{font-size:clamp(1.8rem,4vw,2.7rem);letter-spacing:-.05em;margin:.7rem 0}.nh-hero p{color:#d7e7f4;max-width:540px}.nh-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.4rem}
.nh-btn{display:inline-flex;align-items:center;justify-content:center;gap:.8rem;text-decoration:none;border-radius:10px;padding:.85rem 1rem;font-weight:750;font-size:.92rem;transition:transform .15s,filter .15s}.nh-btn:hover{transform:translateY(-1px);filter:brightness(1.03)}.nh-btn-light{background:#fff;color:#123c5a}.nh-btn-ghost{border:1px solid #ffffff70;color:#fff}.nh-btn-primary{background:var(--nh-blue);color:#fff}.nh-full{width:100%;margin-top:.6rem}
.nh-hero-art{position:relative;min-width:210px;width:260px;height:210px;display:grid;place-items:center}.nh-orbit{position:absolute;width:205px;height:205px;border:1px solid #ffffff3d;border-radius:50%;display:grid;place-items:start center;padding-top:5px;font-size:2rem;color:#6fe0d8}.nh-phone{position:relative;width:140px;height:178px;border:1px solid #ffffff7a;border-radius:20px;background:linear-gradient(145deg,#ffffff22,#ffffff08);box-shadow:0 15px 40px #061d303d;padding:24px 14px;color:#fff;transform:rotate(7deg)}.nh-phone span{font-size:.55rem;letter-spacing:.12em;color:#7ce4db}.nh-phone strong{display:block;margin-top:19px;font-size:1rem}.nh-phone-line{height:5px;background:#ffffff45;border-radius:8px;margin-top:13px}.nh-phone-line.short{width:65%;margin-top:7px}.nh-phone-dot{position:absolute;right:-12px;bottom:23px;background:#39c9a3;color:#063e3d;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:900}
.nh-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1.1rem 0}.nh-stat{min-width:0;display:flex;flex-direction:column;align-items:flex-start;background:#fff;border:1px solid var(--nh-line);border-radius:16px;padding:1.1rem;box-shadow:0 8px 28px #16324f07}.nh-stat-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:1.2rem;font-weight:800;margin-bottom:.85rem}.wallet-icon{background:#e4f6ee;color:#14815b}.number-icon{background:#e7f0ff;color:#2865bf}.inbox-icon{background:#f3eaff;color:#8451bd}.provider-icon{background:#e0f7f6;color:#137f83}.nh-stat-label{font-size:.83rem;color:var(--nh-muted)}.nh-stat>strong{font-size:1.5rem;letter-spacing:-.04em;margin:.3rem 0;overflow-wrap:anywhere}.nh-stat small{font-size:.76rem;color:var(--nh-muted);min-height:2.2em}.nh-stat>a{font-size:.82rem;font-weight:750;color:var(--nh-blue);text-decoration:none;margin-top:.8rem}.nh-status-text{font-size:1.15rem!important}
.nh-main-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr);gap:1rem}.nh-panel{margin:.6rem 0;padding:clamp(1rem,2.5vw,1.5rem)}.nh-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.2rem}.nh-panel-heading p{font-size:.88rem;margin-bottom:0}.nh-panel-icon{width:42px;height:42px;border-radius:13px;background:#e6f1ff;color:var(--nh-blue);display:grid;place-items:center;font-size:1.4rem}.nh-choice-row{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin:1.4rem 0}.nh-choice{display:flex;align-items:center;gap:.7rem;padding:.85rem;border:1px solid var(--nh-line);border-radius:12px}.nh-choice>span{font-size:.7rem;font-weight:850;color:var(--nh-blue);background:#e9f2ff;border-radius:8px;padding:.45rem}.nh-choice strong,.nh-choice small{display:block}.nh-choice strong{font-size:.83rem}.nh-choice small{font-size:.72rem;color:var(--nh-muted);margin-top:.2rem}.nh-note{font-size:.78rem;margin:.8rem 0 0}
.nh-quick-link{display:flex;align-items:center;gap:.8rem;padding:.9rem 0;text-decoration:none;color:var(--nh-ink);border-top:1px solid var(--nh-line)}.nh-quick-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;background:#eff5fc;border-radius:11px;color:var(--nh-blue);font-size:1.15rem}.nh-quick-link>span:nth-child(2){flex:1;min-width:0}.nh-quick-link strong,.nh-quick-link small{display:block}.nh-quick-link strong{font-size:.88rem}.nh-quick-link small{font-size:.76rem;color:var(--nh-muted);margin-top:.2rem}.nh-quick-link>b{font-size:1.4rem;color:#94a3b8}.nh-quick-link:hover strong{color:var(--nh-blue)}
.nh-activity{margin-top:1rem}.nh-text-link{font-size:.84rem;font-weight:750;color:var(--nh-blue);text-decoration:none;white-space:nowrap}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;background:#fff}td,th{padding:.8rem .65rem;border-bottom:1px solid var(--nh-line);text-align:left;font-size:.84rem}th{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--nh-muted);font-weight:800}.nh-table td{white-space:normal}.nh-table td:nth-child(3){white-space:nowrap;color:var(--nh-muted);font-size:.78rem}.nh-amount{text-align:right;white-space:nowrap}.nh-positive{color:var(--nh-green);font-weight:800}.nh-ledger-icon{display:inline-grid;place-items:center;width:27px;height:27px;background:#edf5ff;color:var(--nh-blue);border-radius:8px;margin-right:.45rem;font-weight:800}.nh-empty{text-align:center;color:var(--nh-muted);padding:1.5rem!important}
.nh-security{display:flex;gap:.9rem;align-items:flex-start;background:#eaf7f2;border:1px solid #ccece0;border-radius:14px;padding:1rem 1.2rem;margin-top:1rem}.nh-security>span{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#c9efdf;color:#137a55;font-weight:900}.nh-security strong{color:#145b47}.nh-security p{margin:.25rem 0 0;font-size:.82rem;color:#3f6e60}
label{display:block;margin:.6rem 0}input,select{display:block;width:100%;padding:.7rem;margin-top:.25rem;font-size:1rem;border:1px solid #c7d2df;border-radius:8px}button{background:#1769aa;color:#fff;border:0;border-radius:8px;padding:.7rem 1.1rem;font-size:1rem;cursor:pointer}button:disabled{background:#9aa7b5}button.link{background:none;padding:0;text-decoration:underline;color:inherit}.big{font-size:1.8rem;font-weight:700;margin:0}.banner{padding:.6rem 1rem;border-radius:8px;margin-bottom:.8rem}.demo{background:#fff3cd}.err,.banner.err{background:#f8d7da;color:#58151c}.flash{padding:.6rem 1rem;border-radius:8px;margin:.5rem 0}.flash.ok{background:#d1e7dd}.flash.error{background:#f8d7da}.tag{background:#ffc107;color:#000;border-radius:4px;padding:0 .4rem;font-size:.8rem;font-weight:700}.msgs{list-style:none;padding:0}.msgs li{background:#fff;border-radius:8px;padding:.7rem;margin:.5rem 0}code{word-break:break-all}
@media(max-width:900px){.nh-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.nh-main-grid{grid-template-columns:1fr}.nh-hero-art{width:190px;min-width:160px}.nh-orbit{width:160px;height:160px}}
@media(max-width:560px){main{padding:.8rem}.nh-hero{padding:1.35rem;border-radius:18px}.nh-hero-art{display:none}.nh-stats{gap:.65rem}.nh-stat{padding:.85rem}.nh-stat>strong{font-size:1.25rem}.nh-stat small{min-height:0}.nh-choice-row{grid-template-columns:1fr}.nh-panel-heading{gap:.5rem}.nh-table td,.nh-table th{padding:.65rem .45rem;font-size:.76rem}.nh-table td:nth-child(2){min-width:130px}header{align-items:flex-start}nav{gap:.65rem}}

/* =========================================
   NUMBERHUB PREMIUM DASHBOARD UPGRADE
   Additive styles; existing functionality kept
   ========================================= */

:root {
  --nh-radius-lg: 22px;
  --nh-radius-md: 14px;
  --nh-shadow-card: 0 10px 32px rgba(16, 42, 67, 0.055);
  --nh-shadow-hover: 0 14px 34px rgba(16, 42, 67, 0.10);
}

/* Improve text rendering and scrolling */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  width: 100%;
}

/* More polished navigation */
header {
  position: relative;
  z-index: 5;
  gap: 12px 24px;
}

.brand {
  white-space: nowrap;
}

nav {
  scrollbar-width: thin;
}

nav a,
nav button {
  transition: opacity .18s ease, background .18s ease;
}

nav a {
  padding: 7px 0;
}

nav a:hover {
  text-decoration: none;
  opacity: .75;
}

/* Premium hero card */
.nh-hero {
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.08);
}

.nh-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  right: 5%;
  top: -170px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  box-shadow:
    0 0 0 25px rgba(255,255,255,.025),
    0 0 0 55px rgba(255,255,255,.018);
  pointer-events: none;
}

.nh-hero h1 {
  line-height: 1.12;
}

.nh-btn {
  min-height: 46px;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.nh-btn:focus-visible,
.nh-quick-link:focus-visible,
.nh-text-link:focus-visible,
nav a:focus-visible,
button:focus-visible {
  outline: 3px solid #55b8ee;
  outline-offset: 3px;
}

.nh-btn-primary:hover {
  box-shadow: 0 7px 18px rgba(23,105,170,.22);
}

/* Stat cards */
.nh-stat {
  box-shadow: var(--nh-shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}

.nh-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--nh-shadow-hover);
}

.nh-stat > strong {
  line-height: 1.3;
}

.nh-stat > a {
  display: inline-block;
  padding: 5px 0;
}

.nh-stat:nth-child(4) > strong {
  overflow-wrap: anywhere;
}

/* Panels and quick actions */
.nh-panel {
  border-radius: var(--nh-radius-lg);
  box-shadow: var(--nh-shadow-card);
}

.nh-panel-heading h2 {
  line-height: 1.35;
}

.nh-choice {
  transition: border-color .18s ease, background .18s ease;
}

.nh-choice:hover {
  border-color: #c6dcf5;
  background: #f8fbff;
}

.nh-quick-link {
  min-height: 66px;
  transition: padding .18s ease, background .18s ease;
}

.nh-quick-link:hover {
  padding-left: 6px;
  background: #fbfdff;
}

.nh-quick-icon {
  flex-shrink: 0;
}

/* Transaction tables */
.scroll {
  max-width: 100%;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.nh-table {
  min-width: 620px;
}

.nh-table thead th {
  background: #f8fafd;
  white-space: nowrap;
}

.nh-table tbody tr {
  transition: background .15s ease;
}

.nh-table tbody tr:hover {
  background: #f8fbff;
}

.nh-table tbody tr:last-child td {
  border-bottom: 0;
}

.nh-table td {
  line-height: 1.5;
}

.nh-table td strong {
  overflow-wrap: anywhere;
}

.nh-text-link {
  display: inline-block;
  padding: 5px 0;
}

/* Forms and feedback */
input,
select,
textarea {
  max-width: 100%;
  min-height: 46px;
  font: inherit;
}

button {
  min-height: 44px;
  font-weight: 650;
  transition: filter .18s ease, transform .18s ease;
}

button:hover:not(:disabled) {
  filter: brightness(.96);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

.flash,
.banner {
  overflow-wrap: anywhere;
  line-height: 1.5;
}

/* Wallet and security callouts */
.nh-security {
  border-radius: var(--nh-radius-md);
}

.nh-positive {
  font-variant-numeric: tabular-nums;
}

/* Tablet */
@media (max-width: 900px) {
  header {
    align-items: center;
  }

  nav {
    max-width: 100%;
  }

  .nh-hero {
    gap: 1rem;
  }

  .nh-stat {
    min-width: 0;
  }
}

/* Mobile */
@media (max-width: 560px) {
  main {
    padding: 12px;
  }

  header {
    padding: 14px 12px;
    gap: 10px;
  }

  .brand {
    font-size: 1.3rem;
  }

  nav {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding: 4px 0 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  nav a,
  nav button {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .84rem;
  }

  nav form {
    flex: 0 0 auto;
  }

  .nh-hero {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .nh-hero h1 {
    font-size: 1.8rem;
  }

  .nh-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nh-btn {
    width: 100%;
  }

  .nh-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .nh-stat {
    padding: 13px;
    border-radius: 14px;
  }

  .nh-stat-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
  }

  .nh-stat-label {
    font-size: .78rem;
  }

  .nh-stat > strong {
    font-size: 1.12rem;
    overflow-wrap: anywhere;
  }

  .nh-stat small {
    font-size: .73rem;
  }

  .nh-stat > a {
    font-size: .78rem;
  }

  .nh-panel {
    padding: 16px;
    border-radius: 17px;
  }

  .nh-panel-heading {
    flex-wrap: wrap;
  }

  .nh-choice-row {
    gap: 9px;
    margin: 18px 0;
  }

  .nh-quick-link {
    gap: 10px;
  }

  .nh-security {
    padding: 13px;
  }

  .nh-table {
    min-width: 620px;
  }

  .nh-activity {
    margin-top: 12px;
  }
}

/* Respect reduced-motion accessibility settings */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
