:root{
  color-scheme:dark;
  --bg:#03070b;--surface:#08131a;--surface-strong:#0d1b25;--surface-soft:#132732;
  --line:rgba(155,218,230,.085);--line-strong:rgba(170,232,242,.17);
  --text:#f5fbfd;--muted:#8196a1;--muted-strong:#bfd0d7;
  --accent:#86e9ff;--accent-soft:rgba(134,233,255,.095);--up:#39e58c;--up-soft:rgba(57,229,140,.15);--down:#ff5f70;--down-soft:rgba(255,95,112,.15);
  --page-gradient:radial-gradient(ellipse at 9% -9%,rgba(50,111,255,.19),transparent 34rem),radial-gradient(ellipse at 91% 1%,rgba(96,255,202,.115),transparent 31rem),radial-gradient(ellipse at 68% 112%,rgba(157,100,255,.10),transparent 38rem),linear-gradient(151deg,#07121b 0%,#03070b 49%,#0a0b18 100%);
  --header-glow-a:rgba(96,255,202,.13);--header-glow-b:rgba(122,111,255,.09);--header-edge:rgba(134,233,255,.10);--theme-browser:#07121b;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
:root[data-theme="black"]{--bg:#030405;--surface:#090c11;--surface-strong:#10151d;--surface-soft:#181f2a;--line:rgba(255,255,255,.09);--line-strong:rgba(255,255,255,.17);--text:#f7f9fc;--muted:#7f8997;--muted-strong:#b7bfca;--accent:#dfe8ef;--accent-soft:rgba(223,232,239,.075);--page-gradient:radial-gradient(circle at 50% -18%,rgba(60,72,82,.17),transparent 35rem),linear-gradient(145deg,#090b0e 0%,#030405 58%,#08090b 100%);--header-glow-a:rgba(255,255,255,.055);--header-glow-b:rgba(112,131,146,.055);--header-edge:rgba(255,255,255,.075);--theme-browser:#090b0e}
:root[data-theme="light"]{color-scheme:light;--bg:#eef5ff;--surface:#fff;--surface-strong:#f5f9ff;--surface-soft:#e8f1fb;--line:rgba(17,53,91,.10);--line-strong:rgba(17,53,91,.20);--text:#10233b;--muted:#657991;--muted-strong:#41566f;--accent:#007da5;--accent-soft:rgba(0,125,165,.10);--up:#087d4c;--up-soft:rgba(8,125,76,.12);--down:#d33d50;--down-soft:rgba(211,61,80,.11);--page-gradient:radial-gradient(circle at 12% -8%,rgba(64,161,255,.20),transparent 34rem),radial-gradient(circle at 88% 2%,rgba(0,193,226,.12),transparent 30rem),linear-gradient(145deg,#f8fbff 0%,#edf5ff 52%,#f5faff 100%);--header-glow-a:rgba(0,169,211,.12);--header-glow-b:rgba(76,117,255,.07);--header-edge:rgba(0,125,165,.10);--theme-browser:#f8fbff}
:root[data-theme="amber"]{--bg:#05080d;--surface:#0b1118;--surface-strong:#111923;--surface-soft:#18222d;--line:rgba(220,200,178,.085);--line-strong:rgba(226,198,168,.16);--text:#f5f6f7;--muted:#87919c;--muted-strong:#c7cdd2;--accent:#d6b28e;--accent-soft:rgba(214,178,142,.085);--page-gradient:radial-gradient(ellipse at 8% -10%,rgba(54,83,121,.16),transparent 35rem),radial-gradient(ellipse at 94% 3%,rgba(199,139,88,.05),transparent 30rem),radial-gradient(ellipse at 69% 114%,rgba(104,74,120,.045),transparent 38rem),linear-gradient(151deg,#0a111a 0%,#05080d 51%,#0c0d12 100%);--header-glow-a:rgba(214,178,142,.095);--header-glow-b:rgba(74,103,143,.08);--header-edge:rgba(214,178,142,.085);--theme-browser:#0a111a}
*{box-sizing:border-box}html{background:var(--theme-browser,var(--bg));scroll-behavior:smooth}body{margin:0;min-width:320px;min-height:100vh;background:var(--page-gradient),var(--bg);background-attachment:fixed;color:var(--text);font-size:16px;line-height:1.5;overflow-x:hidden}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}svg{display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rewards-shell{width:min(1180px,calc(100% - 24px));min-height:100dvh;margin:0 auto;padding:max(12px,env(safe-area-inset-top)) 0 max(18px,env(safe-area-inset-bottom));display:grid;grid-template-rows:auto 1fr;gap:18px}
.rewards-header{position:sticky;top:0;z-index:30;isolation:isolate;display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;padding:5px 2px 13px}
.rewards-header::before{content:"";position:absolute;z-index:-2;left:-24px;right:-24px;top:calc(-1 * max(12px,env(safe-area-inset-top)));height:calc(100% + max(18px,env(safe-area-inset-top)));background:radial-gradient(ellipse at 9% 6%,var(--header-glow-a),transparent 43%),radial-gradient(ellipse at 92% 10%,var(--header-glow-b),transparent 42%),linear-gradient(180deg,color-mix(in srgb,var(--bg) 58%,transparent) 0%,color-mix(in srgb,var(--bg) 18%,transparent) 62%,transparent 100%);opacity:.96;backdrop-filter:blur(9px) saturate(1.06);-webkit-backdrop-filter:blur(9px) saturate(1.06);mask-image:linear-gradient(to bottom,#000 0%,#000 58%,rgba(0,0,0,.72) 78%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 58%,rgba(0,0,0,.72) 78%,transparent 100%)}
.rewards-header::after{content:"";position:absolute;z-index:-1;left:8%;right:8%;bottom:4px;height:1px;background:linear-gradient(90deg,transparent,var(--header-edge),transparent);opacity:.72}.rewards-close{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface) 80%,var(--accent-soft) 20%);color:var(--text);text-decoration:none}.rewards-close:active{transform:scale(.96)}.rewards-close svg{width:20px}.rewards-title{display:grid;gap:1px}.rewards-title span{color:var(--accent);font-size:.52rem;font-weight:950;letter-spacing:.18em}.rewards-title strong{font-size:clamp(1.08rem,2vw,1.55rem);font-weight:950;letter-spacing:-.025em}.rewards-head-status{display:flex;align-items:center;gap:9px}.rewards-head-status>strong{font-size:.78rem;font-weight:950;font-variant-numeric:tabular-nums}.rewards-live{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid color-mix(in srgb,var(--up) 24%,var(--line));border-radius:999px;color:var(--muted-strong);font-size:.5rem;font-weight:950;letter-spacing:.11em}.rewards-live i,.rewards-sync-meta i,.rewards-total-status i{width:6px;height:6px;border-radius:50%;background:var(--up);box-shadow:0 0 12px color-mix(in srgb,var(--up) 72%,transparent);animation:livePulse 2s ease-in-out infinite}.rewards-live.sync{opacity:.55}.rewards-live.error{border-color:color-mix(in srgb,var(--down) 32%,var(--line));color:var(--down)}.rewards-live.error i{background:var(--down)}@keyframes livePulse{0%,100%{opacity:.6;transform:scale(.82)}50%{opacity:1;transform:scale(1.12)}}
.rewards-main{display:grid;gap:15px;align-content:start}.rewards-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding:22px 22px 7px}.rewards-kicker{display:block;color:var(--accent);font-size:.54rem;font-weight:950;letter-spacing:.18em}.rewards-intro h1{margin:5px 0 8px;font-size:clamp(1.7rem,4vw,3.4rem);line-height:1.02;letter-spacing:-.045em}.rewards-intro h1 em{font-style:normal;color:color-mix(in srgb,var(--accent) 84%,var(--text))}.rewards-intro p{max-width:720px;margin:0;color:var(--muted);font-size:.78rem}.rewards-sync-meta{flex:0 0 auto;display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.58rem;font-weight:850;letter-spacing:.04em;white-space:nowrap}
.rewards-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:14px;align-items:start}.rewards-list-panel,.rewards-total-panel{border:1px solid var(--line);border-radius:24px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 96%,transparent),color-mix(in srgb,var(--accent) 2.5%,var(--surface)));box-shadow:0 22px 70px color-mix(in srgb,#000 16%,transparent);overflow:hidden}.rewards-list-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:14px 16px 12px;border-bottom:1px solid var(--line)}.rewards-list-head>div{display:grid;gap:1px}.rewards-list-head>div:last-child{text-align:right}.rewards-list-head span{color:var(--muted-strong);font-size:.52rem;font-weight:950;letter-spacing:.14em}.rewards-list-head small{color:var(--muted);font-size:.49rem}.rewards-list{display:grid}.reward-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;min-height:104px;padding:15px 16px;border-bottom:1px solid var(--line);transition:background .18s ease}.reward-row:last-child{border-bottom:0}.reward-row:hover{background:color-mix(in srgb,var(--accent) 2.8%,transparent)}.reward-wallet{min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px}.reward-wallet-index{width:42px;height:42px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line));border-radius:13px;background:var(--accent-soft);color:var(--accent);font-size:.65rem;font-weight:950;font-variant-numeric:tabular-nums}.reward-wallet-copy{min-width:0;display:grid;gap:4px}.reward-wallet-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.91rem;font-weight:930;letter-spacing:-.015em}.reward-wallet-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.56rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.reward-edit{width:34px;height:34px;display:grid;place-items:center;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--muted);cursor:pointer}.reward-edit:hover{border-color:var(--line);background:color-mix(in srgb,var(--accent) 5%,transparent);color:var(--accent)}.reward-edit svg{width:15px}.reward-live-number{display:grid;justify-items:end;gap:4px;text-align:right}.reward-live-number strong{min-width:14.8ch;color:var(--text);font-size:clamp(1.05rem,2vw,1.28rem);font-weight:950;letter-spacing:-.025em;font-variant-numeric:tabular-nums lining-nums;font-feature-settings:"tnum" 1,"lnum" 1;white-space:nowrap}.reward-live-number strong.flash{animation:rewardFlash .45s ease}@keyframes rewardFlash{0%{color:var(--accent);text-shadow:0 0 16px color-mix(in srgb,var(--accent) 40%,transparent)}100%{color:var(--text);text-shadow:none}}.reward-live-number small{color:var(--muted);font-size:.51rem;font-weight:800;font-variant-numeric:tabular-nums}.reward-live-number .row-live{display:inline-flex;align-items:center;gap:5px;color:var(--up);font-size:.45rem;font-weight:950;letter-spacing:.1em}.row-live i{width:5px;height:5px;border-radius:50%;background:currentColor;box-shadow:0 0 9px currentColor}.reward-row.offline .row-live{color:var(--muted)}
.rewards-total-panel{position:sticky;top:82px;min-height:420px;display:grid;align-content:center;justify-items:center;text-align:center;padding:28px 24px;isolation:isolate}.rewards-total-panel::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 18%,color-mix(in srgb,var(--accent) 4.5%,transparent) 50%,transparent 80%);transform:translateX(-100%);animation:totalSweep 7s ease-in-out infinite;z-index:-1}@keyframes totalSweep{0%,68%{transform:translateX(-100%)}88%,100%{transform:translateX(100%)}}.rewards-total-orbit{position:absolute;width:330px;aspect-ratio:1;border:1px solid color-mix(in srgb,var(--accent) 8%,transparent);border-radius:50%;z-index:-1}.rewards-total-orbit::before,.rewards-total-orbit::after{content:"";position:absolute;inset:16%;border:1px solid color-mix(in srgb,var(--accent) 8%,transparent);border-radius:50%}.rewards-total-orbit::after{inset:31%}.rewards-total-orbit i{position:absolute;width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 14px color-mix(in srgb,var(--accent) 65%,transparent)}.rewards-total-orbit i:nth-child(1){top:8%;left:30%}.rewards-total-orbit i:nth-child(2){right:5%;top:55%}.rewards-total-orbit i:nth-child(3){bottom:13%;left:16%;opacity:.5}.rewards-total-label{color:var(--muted);font-size:.55rem;font-weight:950;letter-spacing:.2em}.rewards-total-value{display:flex;align-items:baseline;justify-content:center;gap:7px;margin-top:8px;font-variant-numeric:tabular-nums}.rewards-total-value strong{font-size:clamp(2rem,4.4vw,3.5rem);line-height:.95;font-weight:970;letter-spacing:-.055em}.rewards-total-value small{color:var(--accent);font-size:.61rem;font-weight:950;letter-spacing:.15em}.rewards-total-fiat{margin-top:9px;color:var(--muted-strong);font-size:1rem;font-weight:850;font-variant-numeric:tabular-nums}.rewards-total-rate,.rewards-total-apr{width:min(100%,270px);display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:23px;padding-top:13px;border-top:1px solid var(--line)}.rewards-total-apr{margin-top:0}.rewards-total-rate span,.rewards-total-apr span{color:var(--muted);font-size:.48rem;font-weight:900;letter-spacing:.11em;text-align:left}.rewards-total-rate strong,.rewards-total-apr strong{font-size:.7rem;font-weight:930;font-variant-numeric:tabular-nums;text-align:right}.rewards-total-status{display:flex;align-items:center;gap:7px;margin-top:21px;color:var(--muted);font-size:.52rem;font-weight:850}
.reward-editor[hidden]{display:none}.reward-editor{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:18px}.reward-editor-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.58);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.reward-editor-card{position:relative;width:min(420px,100%);display:grid;gap:10px;padding:20px;border:1px solid var(--line-strong);border-radius:22px;background:color-mix(in srgb,var(--surface) 96%,var(--bg));box-shadow:0 28px 80px rgba(0,0,0,.35)}.reward-editor-card>span{color:var(--accent);font-size:.52rem;font-weight:950;letter-spacing:.15em}.reward-editor-card>strong{overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.54rem}.reward-editor-card label{margin-top:5px;color:var(--muted-strong);font-size:.62rem;font-weight:900}.reward-editor-card input{width:100%;min-height:48px;padding:0 13px;border:1px solid var(--line-strong);border-radius:13px;outline:0;background:color-mix(in srgb,var(--bg) 62%,var(--surface));color:var(--text);font-size:16px;font-weight:800}.reward-editor-card input:focus{border-color:color-mix(in srgb,var(--accent) 52%,var(--line));box-shadow:0 0 0 3px var(--accent-soft)}.reward-editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:7px}.reward-editor-actions button{min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--surface-strong);color:var(--text);font-size:.7rem;font-weight:900;cursor:pointer}.reward-editor-actions button[type="submit"]{border-color:color-mix(in srgb,var(--accent) 30%,var(--line));background:var(--accent-soft);color:var(--accent)}
@media(max-width:820px){.rewards-shell{width:100%;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.rewards-layout{grid-template-columns:1fr}.rewards-total-panel{position:relative;top:auto;grid-row:1;min-height:270px}.rewards-total-orbit{width:270px}.rewards-intro{padding:13px 4px 2px;align-items:flex-start}.rewards-intro p{font-size:.7rem}.rewards-sync-meta{margin-top:7px}.rewards-list-panel{grid-row:2}.reward-row{min-height:94px}}
@media(max-width:560px){.rewards-header{grid-template-columns:42px minmax(0,1fr) auto;gap:9px}.rewards-close{width:40px;height:40px;border-radius:12px}.rewards-head-status>strong{display:none}.rewards-live{padding:6px 8px;font-size:.44rem}.rewards-intro{display:grid;gap:7px}.rewards-intro h1{font-size:1.55rem}.rewards-intro p{font-size:.65rem;line-height:1.45}.rewards-list-head{padding:12px}.reward-row{grid-template-columns:minmax(0,1fr);gap:11px;padding:13px 12px}.reward-live-number{justify-items:start;text-align:left;padding-left:53px}.reward-live-number strong{min-width:14.2ch;font-size:1.04rem}.reward-wallet{grid-template-columns:42px minmax(0,1fr) 32px}.rewards-total-panel{min-height:250px;padding:24px 18px}.rewards-total-value strong{font-size:2.25rem}.rewards-total-rate,.rewards-total-apr{margin-top:16px}.rewards-total-apr{margin-top:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}


/* v15.99.82 — Full-page reward card wall */
@media (min-width:1000px){
  html,body{height:100%;}
  body{overflow:hidden;}
  .rewards-shell{
    width:calc(100% - clamp(32px,3vw,72px));
    max-width:none;
    height:100dvh;
    min-height:0;
    padding:max(12px,env(safe-area-inset-top)) 0 max(16px,env(safe-area-inset-bottom));
    overflow:hidden;
  }
  .rewards-main{
    min-height:0;
    display:grid;
    grid-template-rows:auto minmax(0,1fr);
    gap:14px;
    align-content:stretch;
  }
  .rewards-intro{
    padding:clamp(10px,1.6vh,20px) 4px 4px;
  }
  .rewards-intro h1{
    font-size:clamp(1.65rem,2.6vw,3rem);
    margin:4px 0 6px;
  }
  .rewards-intro p{font-size:clamp(.68rem,.72vw,.8rem);}
  .rewards-layout{
    min-height:0;
    height:100%;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(0,1fr));
    gap:clamp(12px,1vw,18px);
    align-items:stretch;
  }
  .rewards-list-panel,
  .rewards-list{
    display:contents;
  }
  .rewards-list-head{display:none;}
  .reward-row,
  .rewards-total-panel{
    min-width:0;
    min-height:0;
    height:auto;
    border:1px solid var(--line);
    border-radius:clamp(20px,1.5vw,28px);
    background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 96%,transparent),color-mix(in srgb,var(--accent) 2.5%,var(--surface)));
    box-shadow:0 22px 70px color-mix(in srgb,#000 16%,transparent);
    overflow:hidden;
  }
  .reward-row{
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:auto minmax(0,1fr);
    align-items:stretch;
    gap:clamp(18px,2.2vh,30px);
    padding:clamp(18px,1.55vw,28px);
    border-bottom:1px solid var(--line);
    transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
  }
  .reward-row:last-child{border-bottom:1px solid var(--line);}
  .reward-row:hover{
    transform:translateY(-2px);
    border-color:var(--line-strong);
    background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 93%,var(--accent) 7%),color-mix(in srgb,var(--accent) 4%,var(--surface)));
  }
  .reward-wallet{
    align-self:start;
    grid-template-columns:46px minmax(0,1fr) 38px;
    gap:12px;
  }
  .reward-wallet-index{
    width:46px;
    height:46px;
    border-radius:14px;
    font-size:.68rem;
  }
  .reward-wallet-copy strong{font-size:clamp(.88rem,.86vw,1.04rem);}
  .reward-wallet-copy small{font-size:clamp(.52rem,.54vw,.65rem);}
  .reward-live-number{
    align-self:end;
    justify-items:start;
    text-align:left;
    gap:6px;
  }
  .reward-live-number strong{
    min-width:0;
    max-width:100%;
    font-size:clamp(1.3rem,1.75vw,2.25rem);
    line-height:1;
    letter-spacing:-.045em;
  }
  .reward-live-number small{font-size:clamp(.52rem,.55vw,.64rem);}
  .reward-live-number .row-live{font-size:.48rem;}
  .rewards-total-panel{
    position:relative;
    top:auto;
    display:grid;
    align-content:center;
    justify-items:center;
    padding:clamp(20px,1.8vw,32px);
  }
  .rewards-total-orbit{width:min(68%,340px);}
  .rewards-total-value strong{font-size:clamp(2rem,3.1vw,4rem);}
  .rewards-total-rate,.rewards-total-apr{width:min(100%,320px);}
}

@media (min-width:1600px){
  .rewards-layout{gap:18px;}
  .reward-row{padding:clamp(24px,1.55vw,34px);}
  .reward-wallet-index{width:52px;height:52px;border-radius:16px;}
  .reward-wallet{grid-template-columns:52px minmax(0,1fr) 40px;gap:14px;}
  .reward-live-number strong{font-size:clamp(1.75rem,1.75vw,2.6rem);}
}

/* v15.99.85: valori on-chain stabili, nessun salto di larghezza */
.reward-live-number strong,.rewards-total-value strong{font-variant-numeric:tabular-nums lining-nums;font-feature-settings:"tnum" 1,"lnum" 1;}


/* v15.99.88 — richer cards + dual fiat + full large-screen use */
.reward-card-content{min-width:0;display:grid;gap:9px;align-content:center}
.reward-card-livehead{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:.48rem;font-weight:950;letter-spacing:.13em}
.reward-live-number{min-width:0}
.reward-fiat-pair{color:var(--muted-strong);font-size:.64rem;font-weight:850;font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
.reward-flow{position:relative;width:100%;height:3px;margin-top:2px;border-radius:999px;background:color-mix(in srgb,var(--accent) 10%,transparent);overflow:hidden}
.reward-flow span{position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--accent) 42%,transparent) 52%,transparent 100%);transform:translateX(-100%);animation:rewardFlowSweep 4.2s linear infinite}
.reward-flow i{position:absolute;top:50%;left:0;width:5px;height:5px;border-radius:50%;background:var(--up);box-shadow:0 0 11px color-mix(in srgb,var(--up) 72%,transparent);transform:translate(-50%,-50%);animation:rewardFlowDot 4.2s linear infinite}
@keyframes rewardFlowSweep{to{transform:translateX(100%)}}
@keyframes rewardFlowDot{0%{left:0;opacity:.2}8%{opacity:1}92%{opacity:1}100%{left:100%;opacity:.2}}
.reward-card-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.reward-card-stats>div{min-width:0;display:grid;gap:4px}
.reward-card-stats>div+div{padding-left:10px;border-left:1px solid var(--line)}
.reward-card-stats span{color:var(--muted);font-size:.44rem;font-weight:950;letter-spacing:.12em}
.reward-card-stats strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted-strong);font-size:.67rem;font-weight:930;font-variant-numeric:tabular-nums lining-nums}
.rewards-total-metrics{position:relative;z-index:1;width:min(100%,390px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin-top:18px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--line)}
.rewards-total-metrics>div{min-width:0;display:grid;gap:4px;padding:11px 13px;background:color-mix(in srgb,var(--surface) 94%,transparent);text-align:left}
.rewards-total-metrics span{color:var(--muted);font-size:.44rem;font-weight:950;letter-spacing:.11em}
.rewards-total-metrics strong{color:var(--text);font-size:.68rem;font-weight:940;font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
.rewards-total-status{display:flex!important;align-items:center;gap:7px;margin:0;color:var(--up)!important}
.rewards-total-status b{font:inherit;font-weight:950;color:var(--muted-strong)}
.reward-flow-total{position:relative;z-index:1;width:min(100%,390px);margin-top:16px}

@media (min-width:1000px){
  .reward-row{grid-template-rows:auto minmax(0,1fr) auto!important;gap:clamp(14px,1.6vh,24px)!important}
  .reward-card-content{align-self:center;width:100%}
  .reward-live-number{align-self:auto!important;justify-items:start!important;text-align:left!important;gap:7px!important}
  .reward-live-number strong{font-size:clamp(1.35rem,1.7vw,2.25rem)!important}
  .reward-fiat-pair{font-size:clamp(.6rem,.62vw,.78rem)}
  .reward-card-stats{align-self:end}
  .rewards-total-panel{align-content:center!important}
  .rewards-total-fiat{font-size:clamp(.72rem,.8vw,1rem)}
}

@media (min-width:1500px){
  .rewards-shell{width:calc(100% - clamp(44px,4vw,96px))!important}
  .rewards-main{gap:clamp(14px,1.4vh,22px)!important}
  .rewards-layout{gap:clamp(16px,1.15vw,24px)!important}
  .reward-row{padding:clamp(24px,1.7vw,38px)!important}
  .reward-card-content{gap:12px}
  .reward-card-livehead{font-size:.54rem}
  .reward-live-number strong{font-size:clamp(1.8rem,1.85vw,2.7rem)!important}
  .reward-fiat-pair{font-size:clamp(.72rem,.7vw,.9rem)}
  .reward-card-stats{padding-top:16px;gap:12px}
  .reward-card-stats span{font-size:.48rem}
  .reward-card-stats strong{font-size:clamp(.68rem,.62vw,.82rem)}
  .rewards-total-metrics{width:min(100%,430px);margin-top:22px}
  .rewards-total-metrics>div{padding:14px 16px}
  .rewards-total-metrics strong{font-size:.76rem}
  .reward-flow-total{width:min(100%,430px)}
}

@media (max-width:999px){
  .reward-card-content{min-width:0}
  .reward-card-stats{grid-column:1/-1}
  .rewards-total-metrics{width:min(100%,360px)}
  .reward-flow-total{width:min(100%,360px)}
}

@media (max-width:560px){
  .reward-card-content{gap:7px}
  .reward-live-number{padding-left:0!important;justify-items:start!important;text-align:left!important}
  .reward-fiat-pair{font-size:.58rem}
  .reward-card-stats{padding-top:10px;gap:5px}
  .reward-card-stats>div+div{padding-left:7px}
  .reward-card-stats strong{font-size:.58rem}
  .rewards-total-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:14px}
  .rewards-total-metrics>div{padding:9px 10px}
  .rewards-total-metrics strong{font-size:.62rem}
}


/* v15.99.100 — stable long-page ending */
.inj-long-page-signature{display:block;width:100%;padding:18px 12px max(18px,env(safe-area-inset-bottom));
  color:color-mix(in srgb,var(--muted) 86%,var(--accent) 14%);font-size:.57rem;font-weight:820;
  letter-spacing:.14em;text-align:center;opacity:.68;overflow-anchor:none}

/* v15.99.116 — Static green backlight; no outline, trace or comet. */
.reward-comet-layer,.reward-comet-svg,.reward-trace-layer,.reward-outline-flow,.reward-outline-line,.reward-trace{display:none!important}
.reward-accent-frame::before,.reward-accent-frame::after{content:none!important;display:none!important;animation:none!important}
.reward-accent-frame{animation:none!important;border-color:var(--line,transparent)!important;box-shadow:0 0 28px rgba(46,210,145,.16),0 10px 36px rgba(46,210,145,.08)!important}

/* v15.99.116 — Quiet reward cards. */
.reward-live-number strong.flash,.reward-flow span,.reward-flow i{animation:none!important}
.reward-flow span,.reward-flow i{display:none}
.rewards-total-panel::after{animation:none!important;display:none}


/* v15.99.116 — Fine luminous line with a synchronized travelling dot. */
.reward-flow{position:relative;height:8px!important;margin-top:18px;overflow:hidden;border-radius:999px;background:none}
.reward-flow::before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:color-mix(in srgb,var(--up) 14%,transparent)}
.reward-flow span{display:block!important;position:absolute;inset:auto;left:0;top:50%;width:28%;height:1.5px;margin-top:-.75px;transform:translateX(-100%);background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--up) 25%,transparent) 35%,var(--up));animation:rewardPremiumTravel 6s linear infinite!important}
.reward-flow i{display:block!important;position:absolute;left:0;top:50%;width:5px;height:5px;border-radius:50%;transform:translate(-50%,-50%);background:var(--up);box-shadow:0 0 5px var(--up),0 0 10px color-mix(in srgb,var(--up) 45%,transparent);animation:rewardPremiumTravel 6s linear infinite!important}
.reward-row:nth-child(3n+2) .reward-flow span,.reward-row:nth-child(3n+2) .reward-flow i{animation-delay:-2s!important}
.reward-row:nth-child(3n) .reward-flow span,.reward-row:nth-child(3n) .reward-flow i{animation-delay:-4s!important}
@keyframes rewardPremiumTravel{0%{left:0;opacity:0}8%{opacity:.9}92%{opacity:.9}100%{left:100%;opacity:0}}
.reward-row.offline .reward-flow span,.reward-row.offline .reward-flow i{animation-play-state:paused!important;opacity:.2}
@media(prefers-reduced-motion:reduce){.reward-flow span,.reward-flow i{animation:none!important;left:50%;opacity:.4}}


/* =========================================================
   v15.99.126 — Live Rewards Runway
   Replaces the travelling line + dot with six sequential green lights.
   ========================================================= */

/* Fully remove the old line/sweep mechanics. */
.reward-flow.reward-runway-live{
  position:relative!important;
  width:auto!important;
  height:13px!important;
  margin-top:8px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  overflow:visible!important;
  border-radius:0!important;
  background:none!important;
}
.reward-flow.reward-runway-live::before,
.reward-flow.reward-runway-live::after,
.reward-flow.reward-runway-live span{
  content:none!important;
  display:none!important;
  animation:none!important;
  background:none!important;
}

/* Six independent landing lights. */
.reward-flow.reward-runway-live>i{
  position:static!important;
  display:block!important;
  flex:0 0 auto!important;
  width:5px!important;
  height:5px!important;
  border-radius:50%!important;
  opacity:.12;
  transform:scale(.68)!important;
  background:color-mix(in srgb,var(--up) 22%,transparent)!important;
  box-shadow:none!important;
  animation:liveRewardRunway 1.74s linear infinite!important;
  will-change:opacity,transform,box-shadow,background;
}
.reward-flow.reward-runway-live>i:nth-child(1){animation-delay:0s!important}
.reward-flow.reward-runway-live>i:nth-child(2){animation-delay:.29s!important}
.reward-flow.reward-runway-live>i:nth-child(3){animation-delay:.58s!important}
.reward-flow.reward-runway-live>i:nth-child(4){animation-delay:.87s!important}
.reward-flow.reward-runway-live>i:nth-child(5){animation-delay:1.16s!important}
.reward-flow.reward-runway-live>i:nth-child(6){animation-delay:1.45s!important}

@keyframes liveRewardRunway{
  0%,14%,100%{
    opacity:.10;
    transform:scale(.66);
    background:color-mix(in srgb,var(--up) 20%,transparent);
    box-shadow:none;
  }
  18%,31%{
    opacity:1;
    transform:scale(1.08);
    background:var(--up);
    box-shadow:
      0 0 5px color-mix(in srgb,var(--up) 94%,transparent),
      0 0 11px color-mix(in srgb,var(--up) 48%,transparent);
  }
  35%,44%{
    opacity:.31;
    transform:scale(.80);
    background:color-mix(in srgb,var(--up) 50%,transparent);
    box-shadow:0 0 4px color-mix(in srgb,var(--up) 22%,transparent);
  }
}

/* v16.00.1 — Live Rewards runway parity with Dashboard.
   Uses the exact same landing-light animation language as the Dashboard. */
.reward-flow.reward-runway-live > i{
  animation-name:injRewardRunway!important;
  animation-duration:1.62s!important;
  animation-timing-function:linear!important;
  animation-iteration-count:infinite!important;
  animation-fill-mode:none!important;
  opacity:.18!important;
  transform:scale(.72)!important;
  background:color-mix(in srgb,var(--up) 24%,transparent)!important;
  box-shadow:none!important;
}
.reward-flow.reward-runway-live > i:nth-child(1){animation-delay:0s!important}
.reward-flow.reward-runway-live > i:nth-child(2){animation-delay:.27s!important}
.reward-flow.reward-runway-live > i:nth-child(3){animation-delay:.54s!important}
.reward-flow.reward-runway-live > i:nth-child(4){animation-delay:.81s!important}
.reward-flow.reward-runway-live > i:nth-child(5){animation-delay:1.08s!important}
.reward-flow.reward-runway-live > i:nth-child(6){animation-delay:1.35s!important}
.reward-flow.reward-runway-live .dummy{display:none!important}

@media(prefers-reduced-motion:reduce){
  .reward-flow.reward-runway-live > i{animation:none!important;opacity:.42!important;transform:none!important}
  .reward-flow.reward-runway-live > i:nth-child(4){opacity:1!important;background:var(--up)!important;box-shadow:0 0 7px color-mix(in srgb,var(--up) 48%,transparent)!important}
}

/* Each wallet gets a slightly different phase so the page feels genuinely live. */
.reward-row:nth-child(3n+2) .reward-runway-live>i{animation-delay:calc(var(--runway-delay, 0s) - .22s)}
.reward-row:nth-child(3n) .reward-runway-live>i{animation-duration:1.86s!important}

/* Restore the six per-dot delays after the row phase rules. */
.reward-row:nth-child(3n+2) .reward-runway-live>i:nth-child(1){animation-delay:-.22s!important}
.reward-row:nth-child(3n+2) .reward-runway-live>i:nth-child(2){animation-delay:.07s!important}
.reward-row:nth-child(3n+2) .reward-runway-live>i:nth-child(3){animation-delay:.36s!important}
.reward-row:nth-child(3n+2) .reward-runway-live>i:nth-child(4){animation-delay:.65s!important}
.reward-row:nth-child(3n+2) .reward-runway-live>i:nth-child(5){animation-delay:.94s!important}
.reward-row:nth-child(3n+2) .reward-runway-live>i:nth-child(6){animation-delay:1.23s!important}

/* Total panel: centered, slightly larger and brighter. */
.reward-flow-total.reward-runway-live{
  width:min(100%,430px)!important;
  justify-content:center!important;
  gap:7px!important;
  margin-top:16px!important;
}
.reward-flow-total.reward-runway-live>i{
  width:6px!important;
  height:6px!important;
}
.reward-flow-total.reward-runway-live>i:nth-child(1){animation-delay:0s!important}
.reward-flow-total.reward-runway-live>i:nth-child(2){animation-delay:.29s!important}
.reward-flow-total.reward-runway-live>i:nth-child(3){animation-delay:.58s!important}
.reward-flow-total.reward-runway-live>i:nth-child(4){animation-delay:.87s!important}
.reward-flow-total.reward-runway-live>i:nth-child(5){animation-delay:1.16s!important}
.reward-flow-total.reward-runway-live>i:nth-child(6){animation-delay:1.45s!important}

/* Offline rows keep the indicator calm instead of continuing to "accrue". */
.reward-row.offline .reward-runway-live>i{
  animation-play-state:paused!important;
  opacity:.13!important;
  transform:scale(.68)!important;
  box-shadow:none!important;
}

@media(max-width:720px){
  .reward-flow.reward-runway-live{
    gap:4px!important;
    margin-top:7px!important;
  }
  .reward-flow.reward-runway-live>i{
    width:4.5px!important;
    height:4.5px!important;
  }
  .reward-flow-total.reward-runway-live{
    gap:6px!important;
  }
  .reward-flow-total.reward-runway-live>i{
    width:5.5px!important;
    height:5.5px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .reward-flow.reward-runway-live>i{
    animation:none!important;
    opacity:.34!important;
    transform:none!important;
  }
  .reward-flow.reward-runway-live>i:nth-child(4){
    opacity:1!important;
    background:var(--up)!important;
    box-shadow:0 0 7px color-mix(in srgb,var(--up) 44%,transparent)!important;
  }
}

/* =========================================================
   v15.99.127 — Live Reward runway visibility boost
   Larger lights, stronger idle contrast and brighter active glow.
   ========================================================= */
.reward-flow.reward-runway-live{
  height:18px!important;
  gap:7px!important;
  margin-top:10px!important;
}
.reward-flow.reward-runway-live>i{
  width:7px!important;
  height:7px!important;
  opacity:.26!important;
  transform:scale(.84)!important;
  background:color-mix(in srgb,var(--up) 42%,transparent)!important;
  box-shadow:0 0 3px color-mix(in srgb,var(--up) 16%,transparent)!important;
  animation:liveRewardRunwayVisible 1.74s linear infinite!important;
}

@keyframes liveRewardRunwayVisible{
  0%,14%,100%{
    opacity:.24;
    transform:scale(.82);
    background:color-mix(in srgb,var(--up) 40%,transparent);
    box-shadow:0 0 3px color-mix(in srgb,var(--up) 18%,transparent);
  }
  18%,31%{
    opacity:1;
    transform:scale(1.22);
    background:var(--up);
    box-shadow:
      0 0 7px color-mix(in srgb,var(--up) 100%,transparent),
      0 0 15px color-mix(in srgb,var(--up) 72%,transparent),
      0 0 24px color-mix(in srgb,var(--up) 34%,transparent);
  }
  35%,44%{
    opacity:.48;
    transform:scale(.96);
    background:color-mix(in srgb,var(--up) 68%,transparent);
    box-shadow:0 0 6px color-mix(in srgb,var(--up) 34%,transparent);
  }
}

.reward-flow-total.reward-runway-live{
  gap:9px!important;
  margin-top:18px!important;
}
.reward-flow-total.reward-runway-live>i{
  width:8px!important;
  height:8px!important;
}

.reward-row.offline .reward-runway-live>i{
  opacity:.20!important;
  transform:scale(.82)!important;
}

@media(max-width:720px){
  .reward-flow.reward-runway-live{
    height:17px!important;
    gap:6px!important;
    margin-top:9px!important;
  }
  .reward-flow.reward-runway-live>i{
    width:6.5px!important;
    height:6.5px!important;
  }
  .reward-flow-total.reward-runway-live{
    gap:8px!important;
  }
  .reward-flow-total.reward-runway-live>i{
    width:7.5px!important;
    height:7.5px!important;
  }
}

/* v15.99.130 — keep live reward rows visible while data reconnects */
.rewards-list{min-height:120px;}
.reward-row.offline{opacity:.72;}

/* v15.99.134 — FIX DEFINITIVO: i pallini devono poter essere animati.
   Le precedenti regole usavano !important su opacity/transform/box-shadow/background,
   impedendo alle @keyframes di modificare quei valori. */
.reward-flow.reward-runway-live > i{
  position:static!important;
  display:block!important;
  width:7px!important;
  height:7px!important;
  flex:0 0 7px!important;
  border-radius:50%!important;
  opacity:.22;
  transform:scale(.82);
  background:var(--up);
  box-shadow:none;
  animation:injRewardRunway134 1.8s ease-in-out infinite!important;
  animation-play-state:running!important;
  will-change:opacity,transform,box-shadow,background;
}
.reward-flow.reward-runway-live > i:nth-child(1){animation-delay:-1.50s!important}
.reward-flow.reward-runway-live > i:nth-child(2){animation-delay:-1.20s!important}
.reward-flow.reward-runway-live > i:nth-child(3){animation-delay:-.90s!important}
.reward-flow.reward-runway-live > i:nth-child(4){animation-delay:-.60s!important}
.reward-flow.reward-runway-live > i:nth-child(5){animation-delay:-.30s!important}
.reward-flow.reward-runway-live > i:nth-child(6){animation-delay:0s!important}

@keyframes injRewardRunway134{
  0%,58%,100%{
    opacity:.22;
    transform:scale(.82);
    background:var(--up);
    box-shadow:none;
  }
  18%,38%{
    opacity:1;
    transform:scale(1.28);
    background:var(--up);
    box-shadow:0 0 7px var(--up),0 0 16px color-mix(in srgb,var(--up) 65%,transparent);
  }
}

/* Anche quando il wallet è in SYNC/offline, i pallini restano vivi: non simulano
   il reward, indicano semplicemente che il componente è attivo. */
.reward-row.offline .reward-flow.reward-runway-live > i{
  animation-play-state:running!important;
  opacity:.22;
  transform:scale(.82);
  box-shadow:none;
}

/* Se iOS/OS usa Reduce Motion, lasciamo comunque un riferimento visivo stabile. */
@media(prefers-reduced-motion:reduce){
  .reward-flow.reward-runway-live > i{
    animation:none!important;
    opacity:.22;
    transform:scale(.82);
    box-shadow:none;
  }
  .reward-flow.reward-runway-live > i:nth-child(4){
    opacity:1;
    transform:scale(1.18);
    background:var(--up);
    box-shadow:0 0 7px var(--up),0 0 14px color-mix(in srgb,var(--up) 60%,transparent);
  }
}


/* v16.00.2 — Live Rewards: exact Dashboard runway animation parity. */
.reward-flow.reward-runway-live > i{
  animation-name:injRewardRunway!important;
  animation-duration:1.62s!important;
  animation-timing-function:linear!important;
  animation-iteration-count:infinite!important;
  animation-fill-mode:none!important;
  animation-play-state:running!important;
  opacity:.18;
  transform:scale(.72);
  background:color-mix(in srgb,var(--up) 24%,transparent);
  box-shadow:none;
  will-change:opacity,transform,box-shadow,background;
}
.reward-flow.reward-runway-live > i:nth-child(1){animation-delay:0s!important}
.reward-flow.reward-runway-live > i:nth-child(2){animation-delay:.27s!important}
.reward-flow.reward-runway-live > i:nth-child(3){animation-delay:.54s!important}
.reward-flow.reward-runway-live > i:nth-child(4){animation-delay:.81s!important}
.reward-flow.reward-runway-live > i:nth-child(5){animation-delay:1.08s!important}
.reward-flow.reward-runway-live > i:nth-child(6){animation-delay:1.35s!important}
@media(prefers-reduced-motion:reduce){
  .reward-flow.reward-runway-live > i{animation:none!important;opacity:.42!important;transform:none!important}
  .reward-flow.reward-runway-live > i:nth-child(4){opacity:1!important;background:var(--up)!important;box-shadow:0 0 7px color-mix(in srgb,var(--up) 48%,transparent)!important}
}


/* v16.00.3 — Live Rewards runway: JS-driven handoff, independent from OS reduced-motion settings. */
.reward-flow.reward-runway-live > i.runway-active{
  opacity:1!important;
  transform:scale(1.05)!important;
  background:var(--up)!important;
  box-shadow:0 0 5px color-mix(in srgb,var(--up) 90%,transparent),0 0 11px color-mix(in srgb,var(--up) 46%,transparent)!important;
  transition:opacity .12s ease,transform .12s ease,background .12s ease,box-shadow .12s ease!important;
}
.reward-flow.reward-runway-live > i:not(.runway-active){
  opacity:.12!important;
  transform:scale(.68)!important;
  background:color-mix(in srgb,var(--up) 22%,transparent)!important;
  box-shadow:none!important;
  transition:opacity .12s ease,transform .12s ease,background .12s ease,box-shadow .12s ease!important;
}


/* v16.00.37 — iPhone sharp header rendering */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .rewards-header::before {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background:
      radial-gradient(ellipse at 9% 6%,var(--header-glow-a),transparent 43%),
      radial-gradient(ellipse at 92% 10%,var(--header-glow-b),transparent 42%),
      linear-gradient(180deg,color-mix(in srgb,var(--bg) 97%,transparent) 0%,color-mix(in srgb,var(--bg) 91%,transparent) 66%,transparent 100%) !important;
  }
  .rewards-header,
  .rewards-header > * {
    filter:none !important;
    -webkit-filter:none !important;
    -webkit-font-smoothing:antialiased;
  }
}

/* Desktop stability: avoid whole-card GPU repaints / white flashes from
   simultaneous animated beams, sweeping layers and translucent hover paints.
   Numerical rewards still update live; mobile animations are unaffected. */
@media (min-width:1000px) and (hover:hover) and (pointer:fine){
  html[data-inj-page="live-rewards"] .reward-row,
  html[data-inj-page="live-rewards"] .rewards-total-panel{
    transform:none!important;
    transition:none!important;
    backface-visibility:visible!important;
    will-change:auto!important;
  }
  html[data-inj-page="live-rewards"] .reward-row:hover{
    transform:none!important;
    background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 96%,transparent),color-mix(in srgb,var(--accent) 2.5%,var(--surface)))!important;
  }
  html[data-inj-page="live-rewards"] .reward-flow.reward-runway-live>i,
  html[data-inj-page="live-rewards"] .reward-flow span,
  html[data-inj-page="live-rewards"] .reward-velocity-travel,
  html[data-inj-page="live-rewards"] .rewards-total-panel::after,
  html[data-inj-page="live-rewards"] .reward-velocity-beacon{
    animation:none!important;
    transition:none!important;
    will-change:auto!important;
    filter:none!important;
    -webkit-filter:none!important;
  }
  html[data-inj-page="live-rewards"] .reward-flow.reward-runway-live>i:not(.runway-active){
    opacity:.18!important;
    box-shadow:none!important;
  }
  html[data-inj-page="live-rewards"] .reward-flow.reward-runway-live>i.runway-active{
    opacity:.76!important;
    box-shadow:0 0 5px color-mix(in srgb,var(--up) 40%,transparent)!important;
  }
  html[data-inj-page="live-rewards"] .reward-velocity-travel{opacity:.30!important}
  html[data-inj-page="live-rewards"] .reward-velocity-beacon{opacity:.15!important}
  html[data-inj-page="live-rewards"] .rewards-total-panel::after{display:none!important}
}
