/* TalkMoney Dashboard — Vibrant premium refresh */
:root{
  --tm-royal:#0757d9;
  --tm-royal-deep:#063e9d;
  --tm-orange:#f47b20;
  --tm-green:#087f49;
  --tm-cream:#fff7e7;
  --tm-purple:#7547d8;
}
body{
  background:
    radial-gradient(circle at 4% 12%,rgba(244,123,32,.16),transparent 18rem),
    radial-gradient(circle at 98% 28%,rgba(7,87,217,.14),transparent 20rem),
    radial-gradient(circle at 8% 95%,rgba(8,127,73,.12),transparent 18rem),
    var(--tm-cream);
}
.tm-ecosystem-bar{background:linear-gradient(90deg,#06274d,#083e72)!important}
.dash-header{
  background:linear-gradient(105deg,#06347e,#0757d9 60%,#0849b4);
  color:#fff;border-bottom:0!important;box-shadow:0 9px 28px rgba(6,52,126,.18);
  padding:1rem clamp(1rem,3vw,2rem)!important;
}
.dash-header .brand{font-family:var(--font-display);font-weight:900;font-size:1.35rem;color:#fff}
.dash-header nav{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
.dash-header nav a,.dash-header #greeting{color:#fff;font-weight:700}
.dash-header .btn-secondary{background:#fff!important;color:#06347e!important;border:0!important}
.dash-hero{
  grid-column:1/-1;
  position:relative;overflow:hidden;
  min-height:250px;padding:clamp(1.4rem,4vw,2.6rem);
  border:0;border-radius:26px;
  background:
    radial-gradient(circle at 82% 20%,rgba(255,255,255,.27),transparent 9rem),
    linear-gradient(120deg,#063b92 0%,#0757d9 50%,#0a77e8 100%);
  color:#fff;box-shadow:0 22px 45px rgba(6,52,126,.18);
}
.dash-hero:before{content:"";position:absolute;width:270px;height:270px;right:-80px;bottom:-140px;border-radius:50%;background:#f47b20}
.dash-hero:after{content:"";position:absolute;width:210px;height:210px;right:120px;bottom:-150px;border-radius:50%;background:#087f49}
.dash-hero>*{position:relative;z-index:2}
.dash-hero .eyebrow{display:inline-flex;padding:.35rem .7rem;border-radius:999px;background:#ffd16c;color:#15315d;font-weight:900;font-size:.75rem;letter-spacing:.04em}
.dash-hero h1{color:#fff;font-size:clamp(2rem,5vw,3.7rem);margin:.65rem 0 .55rem;letter-spacing:-.04em}
.dash-hero p{max-width:720px;color:#eaf3ff;font-size:1.04rem}
.dash-hero-actions{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1.1rem}
.dash-hero-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.7rem 1rem;border-radius:12px;font-weight:850;text-decoration:none}
.dash-hero-actions a:nth-child(1){background:#f47b20;color:#fff}
.dash-hero-actions a:nth-child(2){background:#087f49;color:#fff}
.dash-hero-actions a:nth-child(3){background:#fff;color:#063b92}
.dash-grid{max-width:1240px;margin:0 auto;gap:18px!important;padding:clamp(1rem,3vw,2rem)!important;position:relative;z-index:1}
.dash-grid>.card{
  border:1px solid rgba(14,42,82,.08);
  border-radius:20px!important;
  box-shadow:0 13px 28px rgba(20,47,87,.08);
  background:rgba(255,255,255,.96);
  transition:transform .16s ease,box-shadow .16s ease;
}
.dash-grid>.card:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(20,47,87,.11)}
.dash-grid>.card h2{font-size:1.12rem;margin-bottom:.75rem}
#profile-card{border-top:6px solid var(--tm-royal)}
#points-card{border-top:6px solid var(--tm-purple);background:linear-gradient(145deg,#fff,#f7f1ff)}
#sales-reward-card{border-top:6px solid var(--tm-green);background:linear-gradient(145deg,#fff,#eefaf4)}
#ecosystem-card{border-top:6px solid var(--tm-orange)}
#community-hub-card{background:linear-gradient(135deg,#063b92,#0757d9);color:#fff;border:0}
#community-hub-card h2,#community-hub-card .field-hint{color:#fff}
#community-hub-card .btn-primary{background:#f47b20}
#community-hub-card .btn-secondary{background:#fff;color:#063b92;border:0}
#my-community-card{border-top:6px solid var(--tm-royal)}
#partner-coming-soon-card{border-top:6px solid #d7a51c;background:#fffaf0}
#purchases-card{border-top:6px solid var(--tm-green)}
#downloads-card{border-top:6px solid var(--tm-orange)}
#notifications-card{border-top:6px solid var(--tm-purple)}
.btn-primary,.btn-secondary{
  border-radius:12px!important;min-height:42px!important;font-weight:800!important;
  transition:transform .15s ease,box-shadow .15s ease!important;
}
.btn-primary{background:linear-gradient(135deg,#0757d9,#0a74eb)!important}
.btn-secondary{background:#f6f9ff!important;border-color:#d5e1f3!important;color:#163968!important}
.btn-primary:hover,.btn-secondary:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,46,92,.12)}
.progress-track{height:10px!important;background:#e5ecf7!important}
.progress-fill{background:linear-gradient(90deg,#087f49,#19ad68)!important}
.big-stat{font-size:2.15rem!important;color:#5d35bf;font-family:var(--font-display)}
.list-row{padding:.8rem .2rem!important}
.tm-currency-stage{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.tm-currency-stage span{
  position:absolute;font-size:clamp(2.3rem,6vw,5rem);font-weight:900;opacity:.05;
  animation:tmDashFloat 8s ease-in-out infinite
}
.tm-currency-stage span:nth-child(1){left:1%;top:21%;color:var(--tm-orange)}
.tm-currency-stage span:nth-child(2){right:1%;top:33%;color:var(--tm-green);animation-delay:-2s}
.tm-currency-stage span:nth-child(3){left:2%;bottom:9%;color:var(--tm-royal);animation-delay:-4s}
.tm-currency-stage span:nth-child(4){right:2%;bottom:8%;color:var(--tm-orange);animation-delay:-6s}
@keyframes tmDashFloat{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-15px) rotate(5deg)}}
@media(max-width:700px){
  .dash-header{align-items:flex-start;gap:.7rem;flex-direction:column}
  .dash-header nav{width:100%;gap:.55rem}
  .dash-hero{min-height:290px}
}

/* Reference-led dashboard structure */
.tm-ecosystem-bar{display:none!important}
.dash-header{
  background:#fff!important;color:#16365f!important;
  box-shadow:0 8px 24px rgba(10,42,85,.08)!important;
  padding:.75rem clamp(1rem,2.5vw,1.6rem)!important;
  position:sticky;top:0;z-index:30
}
.dash-header .brand{color:#0a4b9a!important}
.dash-header nav a,.dash-header #greeting{color:#18365f!important}
.dash-header nav a{
  padding:.55rem .75rem;border-radius:10px;text-decoration:none
}
.dash-header nav a:hover{background:#edf4ff}
.dashboard-frame{
  max-width:1460px;margin:0 auto;display:grid;
  grid-template-columns:220px minmax(0,1fr);gap:18px;
  padding:16px 18px 30px;align-items:start
}
.dashboard-sidebar{
  position:sticky;top:82px;background:linear-gradient(180deg,#062d6e,#073e91 65%,#0757d9);
  border-radius:24px;padding:16px 14px;min-height:620px;
  box-shadow:0 18px 38px rgba(6,47,119,.18)
}
.dashboard-side-brand{
  display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;
  font-weight:950;font-size:1.05rem;padding:5px 8px 15px
}
.dashboard-side-brand span{
  width:36px;height:36px;border-radius:11px;display:grid;place-items:center;
  background:#fff;color:#0757d9;font-size:.75rem
}
.dashboard-sidebar nav{display:grid;gap:6px}
.dashboard-sidebar nav a{
  display:flex;align-items:center;gap:10px;color:#eaf3ff;text-decoration:none;
  min-height:44px;padding:10px 11px;border-radius:12px;font-weight:800;font-size:.88rem
}
.dashboard-sidebar nav a:hover,.dashboard-sidebar nav a.active{
  background:linear-gradient(135deg,#ff9d3f,#f47b20);color:#fff;
  box-shadow:0 8px 18px rgba(244,123,32,.22)
}
.dashboard-frame .dash-grid{max-width:none;margin:0;padding:0!important}
.dash-hero{
  min-height:210px!important;border-radius:24px!important;
  padding:clamp(1.25rem,3vw,2rem)!important;
  background:
    radial-gradient(circle at 84% 18%,rgba(255,255,255,.28),transparent 8rem),
    linear-gradient(115deg,#063b92 0%,#0757d9 54%,#0a77e8 100%)!important
}
.dash-hero h1{font-size:clamp(1.9rem,4vw,3rem)!important;max-width:760px}
.dash-hero p{max-width:760px!important}
#profile-card,#points-card,#sales-reward-card{
  min-height:185px
}
#profile-card{background:linear-gradient(145deg,#fff,#f8fbff)}
#ecosystem-card{
  background:linear-gradient(145deg,#fff8ed,#fff)!important
}
#community-hub-card{
  background:linear-gradient(135deg,#edf4ff,#fff)!important;color:#17345e!important;
  border:1px solid #d9e6f8!important
}
#community-hub-card h2,#community-hub-card .field-hint{color:#17345e!important}
#community-hub-card .btn-primary{background:linear-gradient(135deg,#0757d9,#0a74ed)!important}
#community-hub-card .btn-secondary{background:#fff!important;border:1px solid #d8e4f4!important;color:#17345e!important}
@media(max-width:980px){
  .dashboard-frame{grid-template-columns:1fr}
  .dashboard-sidebar{position:relative;top:auto;min-height:0}
  .dashboard-sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:640px){
  .dashboard-frame{padding:10px}
  .dashboard-sidebar nav{display:flex;overflow-x:auto;gap:7px}
  .dashboard-sidebar nav a{flex:0 0 auto}
  .dashboard-sidebar nav a span{display:none}
  .dash-hero{min-height:250px!important}
}
