/* ===========================================================
   MATCHPULSE ULTIMATE TEAM — MACROBLOCCO 1
   Override visivo non distruttivo. Caricare dopo style.css.
   =========================================================== */
:root {
  --m1-purple: #a448ff;
  --m1-purple-dark: #6115bd;
  --m1-ink: #090c17;
  --m1-surface: #121726;
  --m1-line: rgba(204, 187, 255, .18);
  --m1-soft: #aeb7ce;
}
body {
  background: radial-gradient(ellipse 60% 32% at 80% 2%, rgba(136, 40, 231, .20), transparent),
    radial-gradient(ellipse 70% 34% at 10% 25%, rgba(28, 76, 156, .17), transparent),
    linear-gradient(160deg, #070a13, #0c1021 48%, #060711 100%) !important;
  color: #f4f5ff;
}
.app-shell { max-width: 980px; }
.topbar {
  background: linear-gradient(120deg, rgba(16, 20, 40, .96), rgba(36, 19, 61, .78)) !important;
  border-color: var(--m1-line) !important;
  box-shadow: 0 12px 35px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.08) !important;
}
.topbar .eyebrow { color: #cfacff !important; }
.topbar h1 { background: linear-gradient(90deg, white, #e8d9ff, #b15bff) !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
.topbar .ball-mark { border-color: rgba(153,83,255,.45) !important;
  background: linear-gradient(145deg, rgba(127,36,224,.44), rgba(24,28,58,.7)) !important; }
.bottom-nav.mp-m1-nav {
  width: min(calc(100% - 20px), 900px) !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 5px !important;
  background: rgba(10, 13, 29, .94) !important;
  border: 1px solid rgba(170, 111, 255, .32) !important;
  box-shadow: 0 12px 52px rgba(0,0,0,.62), 0 0 32px rgba(103, 43, 218, .13) !important;
  padding: 7px !important;
  border-radius: 20px !important;
  z-index: 400 !important;
  backdrop-filter: blur(20px);
}
.bottom-nav.mp-m1-nav .nav-btn {
  min-width: 0 !important;
  min-height: 56px !important;
  padding: 6px 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #abb0ca !important;
  gap: 3px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
.bottom-nav.mp-m1-nav .nav-btn.active {
  background: linear-gradient(135deg, #6322ba, #a144fa) !important;
  color: white !important;
  box-shadow: 0 4px 20px rgba(153, 58, 255,.37) !important;
}
.bottom-nav.mp-m1-nav .nav-label {
  font-size: clamp(9px, 2.4vw, 11px) !important;
  letter-spacing: -.02em !important;
  white-space: nowrap !important;
}
.bottom-nav.mp-m1-nav .nav-icon { font-size: 20px !important; }
.mp-m1-page, .mp-m1-home {
  color: #f2f3ff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.mp-m1-page { padding: 12px 0 28px; animation: mpM1In .25s ease both; }
@keyframes mpM1In { from { opacity:0; transform:translateY(7px) } to { opacity:1; transform:translateY(0) } }
.mp-m1-heading, .mp-m1-home-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 15px;
  margin: 10px 0 20px;
}
.mp-m1-heading h2, .mp-m1-home-top h2 {
  font-size: clamp(25px, 6vw, 37px) !important; font-weight: 1000 !important;
  line-height: 1.03; margin: 5px 0 8px !important;
  letter-spacing: -.045em !important;
}
.mp-m1-heading p, .mp-m1-home-top span { color: var(--m1-soft); margin: 0; font-size: 13px; }
.mp-m1-kicker {
  color: #c799ff !important; font-size: 10px !important; font-weight: 900 !important;
  letter-spacing: .18em !important; line-height: 1.5;
}
.mp-m1-token {
  border: 1px solid rgba(202, 164, 255, .36);
  background: linear-gradient(135deg, rgba(75, 27, 142, .50), rgba(21, 21, 47, .9));
  border-radius: 17px; padding: 11px 14px; flex-shrink: 0;
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 9px 28px rgba(0,0,0,.22);
}
.mp-m1-token small { display: block; color: #bdb1d8; font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.mp-m1-token strong { font-size: 21px; color: #fce4a4; white-space: nowrap; }
.mp-m1-overview {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; color: #aaadd0; font-size: 11px; font-weight: 800;
  border-block: 1px solid var(--m1-line); padding: 11px 0; margin-bottom: 17px;
}
.mp-m1-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 15px; }
.mp-m1-tabs button {
  background: rgba(22, 26, 48, .95); border: 1px solid var(--m1-line);
  border-radius: 12px; padding: 12px 6px; color: #b6b6d0;
  font-weight: 900; font-size: 12px;
}
.mp-m1-tabs button.active {
  background: linear-gradient(115deg, #4e209b, #9a42f5); color: white;
  border-color: #b06cff; box-shadow: 0 8px 24px rgba(121,39,228,.28);
}
.mp-m1-challenges-list { display: grid; gap: 12px; }
.mp-m1-challenge, .mp-m1-panel {
  border: 1px solid var(--m1-line); background:
  linear-gradient(125deg, rgba(32, 36, 63, .95), rgba(13, 18, 37, .97));
  border-radius: 20px; padding: 18px;
  box-shadow: 0 14px 35px rgba(0,0,0,.23), inset 0 1px rgba(255,255,255,.045);
}
.mp-m1-challenge.is-claimed { opacity: .72; }
.mp-m1-challenge-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.mp-m1-challenge-head strong { display:block; font-size: 17px; line-height: 1.2; }
.mp-m1-challenge-head p { color: #adb4cd; font-size: 12px; margin: 7px 0 0; line-height: 1.55; }
.mp-m1-reward { flex-shrink: 0; color: #ffdf92; font-weight: 900; font-size: 12px; }
.mp-m1-progress-line { margin-top: 16px; background: rgba(255,255,255,.08); height: 7px; border-radius: 99px; overflow: hidden; }
.mp-m1-progress-line span { display: block; height:100%; border-radius:inherit;
  background: linear-gradient(90deg, #6d29d6, #bd76ff); box-shadow: 0 0 12px rgba(156,65,255,.45); transition: width .25s; }
.mp-m1-challenge-foot { display: flex; justify-content: space-between; align-items:center; gap: 10px; margin-top: 14px; }
.mp-m1-count { color: #d9d9ee; font-weight: 900; font-size: 12px; margin-right: auto; }
.mp-m1-stepper { display:flex; gap:6px; }
.mp-m1-stepper button {
  width: 35px; height: 35px; border-radius: 10px;
  color: white; background: #3b2a64; border: 1px solid #6a439f; font-size: 20px; line-height:1;
}
.mp-m1-redeem, .mp-m1-store-hero button {
  color:white !important; border:1px solid rgba(222,174,255,.35) !important;
  background:linear-gradient(135deg,#6224bc,#a144f6) !important;
  border-radius: 11px; padding: 11px 14px; font-weight: 900; font-size: 12px;
}
.mp-m1-redeem:disabled { opacity: .46; cursor: not-allowed; background: #282b43 !important; }
.mp-m1-stepper button:disabled { opacity: .38; cursor: not-allowed; }
.mp-m1-hint, .mp-m1-error, .mp-m1-empty, .mp-m1-loading {
  background: rgba(74, 40, 111, .14); color: #c2bbdb;
  padding: 14px; margin-top: 16px; border-radius: 14px;
  font-size: 12px; line-height: 1.6; border: 1px solid var(--m1-line);
}
.mp-m1-error { border-color: rgba(250,118,118,.52); color: #ffcccc; }
.mp-m1-error button { border:0; color:#fff; background:#6530b6; padding:9px 13px; border-radius:9px; margin-top:7px; }
.mp-m1-hub-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.mp-m1-hub-grid button {
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  gap:7px; border:1px solid var(--m1-line); border-radius:18px; padding:19px;
  min-height:130px; background:linear-gradient(140deg,#1c223b,#111625); color:white;
  text-align:left;
}
.mp-m1-hub-grid button:first-child { grid-column:span 2; background:linear-gradient(120deg,#4c178b,#a442f9); }
.mp-m1-hub-grid button span {font-size:25px}
.mp-m1-hub-grid button strong {font-weight:1000;font-size:16px}
.mp-m1-hub-grid button small {color:#c9c3da}
.mp-m1-panel h3 {font-size:20px;margin:9px 0}
.mp-m1-panel p {color:var(--m1-soft);font-size:13px;line-height:1.5}
.mp-m1-inline-stats {display:flex;gap:12px;font-size:12px;font-weight:800;margin:15px 0}
.mp-m1-link {background:transparent;color:#d8b8ff;border:0;padding:0;font-weight:900}
.mp-m1-store-hero {padding:32px 22px; background:
  radial-gradient(circle at 95% 2%,rgba(169,51,241,.42),transparent 35%),
  linear-gradient(125deg,#191a36,#080e20);}
.mp-m1-store-hero h3 {font-size:clamp(25px,7vw,38px);max-width:13ch;line-height:1.04}
.mp-m1-home {position:relative}
.mp-m1-home-top {padding: 18px 15px; border:1px solid rgba(174,113,255,.22);
  border-radius:21px; background:linear-gradient(115deg,rgba(29,19,57,.92),rgba(9,14,30,.87));
  box-shadow:0 14px 31px rgba(0,0,0,.2); }
.mp-m1-home .featured-card-wrap { border-radius:25px; }
.mp-m1-home .home-mini-grid { margin-top:11px; }
.mp-m1-home .home-mini-card, .mp-m1-home .home-mini-stat {
  border-color:rgba(177,107,255,.2) !important; background:linear-gradient(115deg,rgba(34,31,56,.92),rgba(15,19,36,.96)) !important;
}
.mp-m1-section-caption {font-size:11px;letter-spacing:.16em;font-weight:1000;color:#d9b5ff;margin:22px 0 6px}
.mp-m1-home-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:17px 0 25px}
.mp-m1-home-links button {
  border:1px solid rgba(183,129,255,.24);border-radius:18px;padding:13px 15px;min-height:94px;
  background:linear-gradient(130deg,rgba(47,32,80,.8),rgba(14,19,40,.93));color:#fff;
  display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}
.mp-m1-home-links button span {font-size:23px;color:#d2a0ff}
.mp-m1-home-links button strong {font-size:14px;font-weight:1000}
.mp-m1-home-links button small {font-size:11px;color:#b1b3cc}
@media (max-width:540px) {
  .mp-m1-heading, .mp-m1-home-top {gap:8px}
  .mp-m1-token {padding:9px 10px}
  .mp-m1-token strong {font-size:17px}
  .mp-m1-token small {font-size:8px}
  .mp-m1-challenge {padding:14px}
  .mp-m1-challenge-head {flex-wrap:wrap;gap:7px}
  .mp-m1-reward {font-size:11px}
  .mp-m1-page {padding-bottom:20px}
}
@media (prefers-reduced-motion:reduce) {
  .mp-m1-page {animation:none}
  .mp-m1-progress-line span {transition:none}
}

/* Record personali trasferiti da Focus nella pagina Statistiche. */
.mp-m1-records {margin: 28px 0 35px;}
.mp-m1-records>h2 {font-size:23px;font-weight:1000;letter-spacing:-.04em;margin:6px 0 14px;}
.mp-m1-records .goals-page-card {border-color:var(--m1-line) !important;
  background:linear-gradient(130deg,rgba(32,36,63,.92),rgba(13,17,34,.96)) !important;}

/* ===============================================================
   PREMI M1 V2 - miniature e pacchetti ottenuti dalle Sfide
   =============================================================== */
.mp-m1-prizes{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:55%}
.mp-m1-prize{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:8px;background:rgba(205,166,255,.11);border:1px solid rgba(205,166,255,.27);color:#ffe29b;font-size:11px;font-weight:800;line-height:1.2}
.mp-m1-prize img{width:24px;height:28px;object-fit:contain;flex-shrink:0;border-radius:4px}
.mp-m1-bonus{border:1px solid rgba(205,166,255,.3);border-radius:15px;padding:12px;margin-bottom:16px;background:rgba(58,35,99,.35)}
.mp-m1-bonus h3{margin:0 0 10px;font-size:13px;color:#f4d994}
.mp-m1-bonus-item{display:flex;align-items:center;gap:9px;margin-top:7px}
.mp-m1-bonus-item img{width:42px;height:45px;object-fit:cover;border-radius:6px}
.mp-m1-bonus-item strong{flex:1;font-size:12px}
.mp-m1-bonus-item button{border:1px solid #a574e9;border-radius:9px;background:#6625a5;color:white;font-weight:800;font-size:11px;padding:9px}
@media(max-width:500px){
  .mp-m1-prizes{justify-content:flex-start;max-width:100%}
  .mp-m1-prize{font-size:10px}
  .mp-m1-bonus-item{flex-wrap:wrap}
}

/* Pack v3: icona neutra nelle sfide, senza anteprima cosmetica. */
.mp-m1-pack-ico{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:24px;height:28px;border-radius:6px;background:linear-gradient(135deg,#4c2a91,#241b57);border:1px solid rgba(233,193,255,.42);font-size:18px;line-height:1}
.mp-m1-bonus-item .mp-m1-pack-ico{width:42px;height:45px;font-size:28px;border-radius:8px}

/* M7.3 — Founder control center, mobile-first. Existing RPCs unchanged. */
.mp-founder-hub{background:#1c1530;border:1px solid #925dc4;border-radius:16px;padding:14px;margin:14px 0;display:grid;gap:14px;min-width:0}
.mp-founder-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.mp-founder-tabs>button{min-width:0;min-height:54px;padding:9px!important;border:1px solid #63517e!important;border-radius:10px!important;background:#171226!important;color:#d9c9ee!important;text-align:left!important;display:grid;gap:3px}
.mp-founder-tabs>button>strong{font-size:13px;line-height:1.2}
.mp-founder-tabs>button>small{font-size:10px;line-height:1.25;color:#c5b4db;font-weight:400}
.mp-founder-tabs>button[aria-pressed=true]{background:linear-gradient(135deg,#6827aa,#913bce)!important;border-color:#c49af5!important;color:#fff!important}
.mp-founder-pane{min-width:0;display:grid;gap:12px;padding-top:10px;border-top:1px solid #69537b}
.mp-founder-pane[hidden]{display:none!important}
.mp-founder-pane>h3{margin:0;color:#f4eaff;font-size:17px}
.mp-founder-pane label{display:grid;gap:4px;min-width:0;font-size:14px}
.mp-founder-pane input,.mp-founder-pane select,.mp-founder-pane textarea{min-width:0;max-width:100%;color-scheme:dark;font-size:16px!important}
.mp-founder-pane select{appearance:auto}
.mp-founder-pane input[type=checkbox]{appearance:auto!important;width:22px!important;height:22px!important;min-height:22px!important;flex:0 0 22px;accent-color:#a04de0}
.mp-founder-pane #mfGoalForm>label:last-of-type{justify-content:flex-start!important}
.mp-founder-pane small{font-size:12px;line-height:1.45;color:#d5c6e8}
@media(min-width:700px){.mp-founder-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}}

.mp-founder-odds{display:grid;gap:12px;padding:12px;border:1px solid #69537b;border-radius:12px;background:#171226;min-width:0}
.mp-founder-odds h3,.mp-founder-odds p{margin:0}.mp-founder-odds p{font-size:12px;color:#d5c6e8;line-height:1.45}
.mp-founder-odds-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mp-founder-odds button:disabled{opacity:.5;cursor:not-allowed}
