/*
 HockAI Banquier IA - NHL ARENA V3.1
 Couche esthétique et correctifs de confort, au-dessus de FOCUS V2 + Aurora V3.
 Aucun calcul, auth, synchronisation, mise ou ticket modifié ici.
 Scope exclusivement #tab-banquier.hf-focus.
*/
#tab-banquier.hf-focus {
  --arena-ice:#8ef2f9;
  --arena-cobalt:#80bfff;
  --arena-gold:#ffcf78;
  --arena-purple:#c3adff;
  --arena-green:#70e9b2;
  --arena-red:#ff8c9b;
  --arena-ink:#06121f;
  --arena-outline:rgba(134,180,226,.3);
  --arena-text:#edf9ff;
  --hf-muted:#b5cce0;
  color:var(--arena-text);
  background-color:#061320!important;
  background-image:
    radial-gradient(ellipse 420px 320px at 100% 0%,rgba(50,128,232,.25),transparent 80%),
    radial-gradient(ellipse 450px 380px at 0% 45%,rgba(18,166,176,.14),transparent 78%),
    radial-gradient(ellipse 540px 490px at 88% 92%,rgba(135,67,185,.11),transparent 85%),
    url("../assets/hockai-nhl-rink-v3-1.svg"),
    linear-gradient(160deg,#051726,#071426 55%,#070e1b)!important;
  background-position:center top,center,center,center top,center!important;
  background-size:auto,auto,auto,min(1400px,140vw) auto,auto!important;
  background-repeat:no-repeat!important;
  scroll-padding-bottom:130px;
  overscroll-behavior-y:contain;
}
#tab-banquier.hf-focus .bk8-shell {min-width:0}
#tab-banquier.hf-focus .mc-shell {isolation:isolate}
#tab-banquier.hf-focus .mc-minihead {
  position:relative;
  background:linear-gradient(100deg,rgba(6,29,51,.60),rgba(9,23,45,.22));
  border-radius:14px;
  padding:7px 9px 10px;
}
#tab-banquier.hf-focus .mc-minihead::after {
  content:"";position:absolute;left:10px;right:10px;bottom:0;height:2px;
  border-radius:99px;
  background:linear-gradient(90deg,var(--arena-ice),rgba(84,157,253,.65),rgba(151,104,230,.22),transparent);
  opacity:.74;pointer-events:none;
}
#tab-banquier.hf-focus .mc-mini-brand small {font-size:10px;letter-spacing:.045em;color:#b6cee1}
#tab-banquier.hf-focus .mc-live-badge {
  border:1px solid rgba(99,232,201,.35);
  color:#abffdb;
  background:rgba(10,72,67,.42);
}
#tab-banquier.hf-focus .hf-welcome {
  position:relative;
  padding-inline:13px;
  background:linear-gradient(105deg,rgba(7,39,61,.64),rgba(15,28,52,.36));
  border:1px solid rgba(90,177,211,.18);
  border-radius:16px;
  margin-bottom:12px;
}
#tab-banquier.hf-focus .hf-welcome::before {
  content:"";position:absolute;inset:0 auto 0 0;width:3px;border-radius:16px 0 0 16px;
  background:linear-gradient(var(--arena-ice),var(--arena-cobalt));
}
#tab-banquier.hf-focus .hf-welcome h1{color:#fff}
#tab-banquier.hf-focus .hf-welcome p{color:#c1d6e7}
#tab-banquier.hf-focus .hf-wallet-button {
  background:linear-gradient(120deg,rgba(10,73,92,.95),rgba(19,50,90,.90));
  border-color:rgba(119,235,244,.45);
  color:#ecfdff;
}

/* Palette: une fonction = un accent, jamais un bloc fluo entier */
#tab-banquier.hf-focus .mc-desktop-nav{
  border-color:rgba(127,177,224,.31);
  background:linear-gradient(110deg,rgba(8,27,46,.98),rgba(13,24,49,.98));
  box-shadow:0 8px 25px rgba(0,5,19,.16);
}
#tab-banquier.hf-focus .mc-nav-btn[data-mc-target="cockpit"]{--arena-tab:#72e6ee}
#tab-banquier.hf-focus .mc-nav-btn[data-mc-target="recommendations"]{--arena-tab:#86baff}
#tab-banquier.hf-focus .mc-nav-btn[data-mc-target="plan"]{--arena-tab:#f4c979}
#tab-banquier.hf-focus .mc-nav-btn[data-mc-target="betlab"]{--arena-tab:#c0a0ff}
#tab-banquier.hf-focus .mc-nav-btn[data-mc-target="analysis"]{--arena-tab:#86e5b2}
#tab-banquier.hf-focus .mc-nav-btn i{color:var(--arena-tab,#8cebf5)!important}
#tab-banquier.hf-focus .mc-nav-btn.is-active{
  background:linear-gradient(140deg,color-mix(in srgb,var(--arena-tab,#72e6ee) 24%,#10273f),rgba(11,38,61,.93));
  color:#fff!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--arena-tab,#72e6ee) 48%,transparent)!important;
}
#tab-banquier.hf-focus .mc-nav-btn.is-active i{color:var(--arena-tab,#72e6ee)!important}

/* Indicateurs du cockpit */
#tab-banquier.hf-focus .mc-kpi{
  border-color:rgba(124,180,226,.30);
  background:linear-gradient(140deg,#11263f,#0a1d32 78%);
}
#tab-banquier.hf-focus .mc-kpi-primary{
  background:linear-gradient(135deg,#11455b,#0b2b43 78%);
  border-color:rgba(78,222,231,.58);
}
#tab-banquier.hf-focus .mc-metrics>.mc-kpi:nth-child(2){
  background:linear-gradient(137deg,#172a55,#102141 78%);
  border-color:rgba(108,148,255,.4);
}
#tab-banquier.hf-focus .mc-kpi-top{color:#c1d4e5!important}
#tab-banquier.hf-focus .mc-kpi small{color:#afc9dc!important}
#tab-banquier.hf-focus .hf-extra-stats {
  border-color:rgba(153,125,224,.35);
  background:linear-gradient(125deg,rgba(36,28,71,.63),rgba(13,30,49,.90));
}
#tab-banquier.hf-focus .hf-extra-stats>summary{color:#ede3ff}
#tab-banquier.hf-focus .hf-action{
  border-color:rgba(128,181,231,.32);
  transition:border-color .17s ease,transform .17s ease;
}
#tab-banquier.hf-focus .hf-action:nth-child(1){border-left:3px solid #bb99f8}
#tab-banquier.hf-focus .hf-action:nth-child(2){border-left:3px solid #80c4ff}
#tab-banquier.hf-focus .hf-action:nth-child(3){border-left:3px solid #f0c87e}
#tab-banquier.hf-focus .hf-action-copy small{color:#b5cce0}
#tab-banquier.hf-focus .mc-alert-card{border-color:rgba(239,177,88,.45)}
#tab-banquier.hf-focus .mc-shortcard{border-color:rgba(101,184,228,.38)!important}
#tab-banquier.hf-focus .mc-shortcard .mc-short-rank{color:#78e7fa}
#tab-banquier.hf-focus .mc-section-heading p{color:#b5c8da}
#tab-banquier.hf-focus .hf-view-lead{
  border-color:rgba(105,170,240,.34);
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%,rgba(73,142,240,.19),transparent),
    linear-gradient(125deg,#112b48,#0c243c);
}
#tab-banquier.hf-focus #bk8-view-plan .hf-view-lead{border-left:3px solid #f8ca77}
#tab-banquier.hf-focus #bk8-view-recommendations .hf-view-lead{border-left:3px solid #81c0ff}
#tab-banquier.hf-focus #bk8-view-analysis .hf-view-lead{border-left:3px solid #76e6b6}

/* Bilan global, seulement après lecture depuis le journal privé */
#tab-banquier.hf-focus .arena-bilan-summary{
  display:grid;gap:10px;padding:14px;margin-bottom:13px;
  background:linear-gradient(116deg,rgba(12,53,68,.88),rgba(14,34,66,.94));
  border:1px solid rgba(105,202,220,.42);
  border-left:3px solid #64e7c6;border-radius:15px;
}
#tab-banquier.hf-focus .arena-bilan-title{
  display:flex;align-items:center;gap:9px;font-size:14px;font-weight:850;
  color:#edfcff;line-height:1.45;
}
#tab-banquier.hf-focus .arena-bilan-title i{color:#7fecda;font-size:17px}
#tab-banquier.hf-focus .arena-bilan-desc{
  margin:0;color:#bcd7e7;font-size:12px;line-height:1.5;
}
#tab-banquier.hf-focus .arena-bilan-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#tab-banquier.hf-focus .arena-bilan-kpi{
  min-width:0;border-radius:11px;border:1px solid rgba(123,199,222,.24);
  background:rgba(5,23,37,.70);padding:10px;
}
#tab-banquier.hf-focus .arena-bilan-kpi span{
  display:block;color:#a9c8d9;font-size:10px;font-weight:750;line-height:1.35;
}
#tab-banquier.hf-focus .arena-bilan-kpi strong{
  display:block;margin-top:5px;color:#f1fcff;font-size:17px;font-weight:900;line-height:1.2;
  font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
#tab-banquier.hf-focus .arena-bilan-kpi:nth-child(2) strong{color:#89f1c7}
#tab-banquier.hf-focus .arena-bilan-action{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:44px;padding:10px 15px;border-radius:11px;
  border:1px solid rgba(118,216,224,.44);
  background:rgba(21,85,99,.52);color:#e5fbff;font-size:12px;font-weight:850;
}
#tab-banquier.hf-focus .arena-bilan-action:focus-visible{outline:2px solid #91f9ff;outline-offset:2px}
#tab-banquier.hf-focus .arena-bilan-kpis[hidden]{display:none!important}

/* BetLab et 32 équipes : on suit les identités des franchises, sans dépendre d'images externes */
#tab-banquier.hf-focus #sn-wrapper .sn-top-tab.is-active{
  color:#fff!important;
  background:linear-gradient(105deg,rgba(83,40,148,.6),rgba(18,87,118,.78));
  box-shadow:inset 0 0 0 1px rgba(177,141,253,.38)!important;
}
#tab-banquier.hf-focus #sn-wrapper .sn-top-tab.is-active i{color:#d3b6ff}
#tab-banquier.hf-focus #sn-wrapper .hf-series-heading{
  background:
    radial-gradient(ellipse at 100% 0%,rgba(106,67,196,.29),transparent 65%),
    url("../assets/hockai-nhl-rink-v3-1.svg"),
    linear-gradient(118deg,#10394f,#142a4b 65%,#201f47);
  background-size:auto,650px auto,auto;
  background-position:center,right top,center;
  border-color:rgba(131,163,244,.4);
}
#tab-banquier.hf-focus #sn-wrapper .sn-team{
  border-color:color-mix(in srgb,var(--team,#5acde3) 55%,#27445a);
  border-left:4px solid var(--team,#5acde3);
  background:
    linear-gradient(95deg,color-mix(in srgb,var(--team,#5acde3) 18%,#0b2034),#0b1e30 56%,#091827);
}
#tab-banquier.hf-focus #sn-wrapper .sn-team-identity strong{color:#fff}
#tab-banquier.hf-focus #sn-wrapper .sn-logo{
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--team,#58d8e6) 52%,transparent);
  color:#fff;
}
#tab-banquier.hf-focus #sn-wrapper .sn-step.is-next{
  background:linear-gradient(125deg,rgba(17,93,112,.65),rgba(10,50,72,.70));
  border-color:#3fd8e8;color:#a6faff;
}
#tab-banquier.hf-focus #sn-wrapper .sn-step.is-won{
  color:#b4ffe4;background:rgba(24,102,65,.38);border-color:rgba(86,230,149,.6);
}
#tab-banquier.hf-focus #sn-wrapper .sn-step.is-lost{
  color:#ffb9c1;background:rgba(132,36,53,.35);border-color:rgba(250,112,127,.45);
}
#tab-banquier.hf-focus #sn-wrapper .sn-step.is-pending{
  color:#a7dfff;background:rgba(28,95,148,.35);border-color:rgba(104,182,246,.55);
}
#tab-banquier.hf-focus #sn-wrapper .sn-tag.is-won{
  color:#8ff2c1!important;background:rgba(17,113,76,.50)!important;border-color:rgba(62,228,153,.50)!important;
}
#tab-banquier.hf-focus #sn-wrapper .sn-tag.is-pending{
  color:#bbe4ff!important;background:rgba(24,90,156,.46)!important;border-color:rgba(117,189,255,.45)!important;
}
#tab-banquier.hf-focus #sn-wrapper .sn-tag.is-lost{
  color:#ffc6c9!important;background:rgba(124,30,45,.48)!important;border-color:rgba(249,118,133,.48)!important;
}
#tab-banquier.hf-focus #sn-wrapper .sn-team-actions .sn-primary{
  background:linear-gradient(105deg,#7ce7f3,#64c1f8)!important;
  color:#061b2a!important;box-shadow:0 5px 16px rgba(39,162,225,.16);
}
#tab-banquier.hf-focus #sn-wrapper .sn-search input,
#tab-banquier.hf-focus #sn-wrapper .sn-form-grid input,
#tab-banquier.hf-focus #sn-wrapper .sn-form-grid select,
#tab-banquier.hf-focus #sn-wrapper .sn-form-grid textarea{
  background-color:#091b30;color:#f0fbff;border-color:rgba(106,165,220,.40);
}
#tab-banquier.hf-focus #sn-wrapper :is(input,select,textarea):focus{
  border-color:#7be7f4;box-shadow:0 0 0 2px rgba(101,223,242,.16);
}
#tab-banquier.hf-focus #sn-wrapper .sn-player-option:hover,
#tab-banquier.hf-focus #sn-wrapper .sn-player-option.is-highlighted{
  background:#1a4d70;
}
#tab-banquier.hf-focus .blpriv-heading{
  background:linear-gradient(110deg,#16415c,#202348);
  border-color:rgba(123,173,242,.44);
}
#tab-banquier.hf-focus .blpriv-state.is-won{color:#99f3c3}
#tab-banquier.hf-focus .blpriv-state.is-lost{color:#ffabb8}
#tab-banquier.hf-focus .blpriv-state.is-pending{color:#a2d9ff}

/* Une typographie confort, y compris textes secondaires */
#tab-banquier.hf-focus .hf-kicker{font-size:11px}
#tab-banquier.hf-focus .hf-action-copy small,
#tab-banquier.hf-focus .hf-view-lead p,
#tab-banquier.hf-focus .mc-kpi small,
#tab-banquier.hf-focus #sn-wrapper .sn-team-identity small,
#tab-banquier.hf-focus #sn-wrapper .sn-team-summary {color:#b9d2e6}
#tab-banquier.hf-focus :is(button,a,summary):focus-visible{
  outline:2px solid #a1f9ff;outline-offset:3px;
}

/* Smartphone : contenu complet accessible au-dessus de la barre fixe */
@media(max-width:767px){
  #tab-banquier.hf-focus {
    background-image:
      radial-gradient(ellipse 330px 300px at 100% 0%,rgba(52,128,237,.22),transparent 84%),
      radial-gradient(ellipse 280px 350px at 0% 45%,rgba(29,152,159,.12),transparent 85%),
      url("../assets/hockai-nhl-rink-v3-1.svg"),
      linear-gradient(165deg,#061728,#071727 52%,#071422)!important;
    background-size:auto,auto,710px auto,auto!important;
    padding-bottom:calc(160px + env(safe-area-inset-bottom,0px))!important;
    scroll-padding-bottom:calc(120px + env(safe-area-inset-bottom,0px));
    overflow-x:hidden!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  #tab-banquier.hf-focus .bk8-shell{
    padding-bottom:calc(170px + env(safe-area-inset-bottom,0px))!important;
  }
  #tab-banquier.hf-focus :is(#bk8-view-recommendations,#bk8-view-plan,#bk8-view-portfolio,#bk8-view-analysis,#bk8-view-betlab){
    padding-bottom:calc(135px + env(safe-area-inset-bottom,0px))!important;
    scroll-margin-bottom:120px;
  }
  #tab-banquier.hf-focus .mc-mobile-nav{
    position:fixed!important;
    z-index:1040;
    height:70px!important;
    left:max(8px,env(safe-area-inset-left,0px))!important;
    right:max(8px,env(safe-area-inset-right,0px))!important;
    bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
    padding:5px!important;
    border-radius:19px;
    border:1px solid rgba(132,191,233,.42);
    background:linear-gradient(125deg,rgba(7,25,43,.98),rgba(16,23,52,.985))!important;
    box-shadow:0 -12px 32px rgba(0,8,22,.6);
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
  #tab-banquier.hf-focus .mc-mobile-nav .mc-nav-btn{
    width:100%;min-width:0;min-height:59px!important;
    padding:6px 1px!important;font-size:10px!important;
    line-height:1.2;gap:5px;border-radius:13px;
  }
  #tab-banquier.hf-focus .mc-mobile-nav .mc-nav-btn span{
    white-space:normal!important;text-overflow:initial!important;
    overflow:visible!important;max-width:100%;font-size:10px;
  }
  #tab-banquier.hf-focus .mc-mobile-nav .mc-nav-btn i{font-size:18px!important}
  #tab-banquier.hf-focus .mc-nav-btn.is-active{
    background:linear-gradient(150deg,color-mix(in srgb,var(--arena-tab,#72e6ee) 23%,#0c2747),rgba(13,42,65,.91))!important;
    border-color:color-mix(in srgb,var(--arena-tab,#72e6ee) 56%,transparent)!important;
  }
  #tab-banquier.hf-focus .mc-minihead{margin-bottom:9px;padding:6px 7px 9px}
  #tab-banquier.hf-focus .hf-welcome{padding:11px 12px}
  #tab-banquier.hf-focus .hf-welcome p{font-size:12px}
  #tab-banquier.hf-focus .mc-kpi{padding:12px!important}
  #tab-banquier.hf-focus .mc-kpi-top{font-size:11px!important;line-height:1.3}
  #tab-banquier.hf-focus .mc-kpi strong{font-size:clamp(22px,6vw,28px)!important;line-height:1.2}
  #tab-banquier.hf-focus .mc-kpi small{font-size:11px}
  #tab-banquier.hf-focus .hf-action-copy strong{font-size:14px}
  #tab-banquier.hf-focus .hf-action-copy small{font-size:12px}
  #tab-banquier.hf-focus .mc-section-heading p{font-size:12px}
  #tab-banquier.hf-focus .hf-view-lead p{font-size:12px}
  #tab-banquier.hf-focus #sn-wrapper .sn-team-identity small{font-size:12px}
  #tab-banquier.hf-focus #sn-wrapper .sn-team-summary{font-size:12px}
  #tab-banquier.hf-focus #sn-wrapper .sn-team-actions button{font-size:12px!important}
  #tab-banquier.hf-focus #sn-wrapper .hf-series-heading{border-radius:15px}
  #tab-banquier.hf-focus #sn-wrapper .sn-filter-panel{
    min-width:0;overflow:visible;padding:10px!important;
  }
  #tab-banquier.hf-focus #sn-wrapper .hf-filter-body{padding:0 9px 11px}
  /* Les quatre filtres sont tous visibles, sans texte rogné ni scroll piégeux */
  #tab-banquier.hf-focus #sn-wrapper #sn-filters{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;width:100%;overflow:visible;min-width:0;
  }
  #tab-banquier.hf-focus #sn-wrapper #sn-filters button{
    display:flex;justify-content:center;align-items:center;min-width:0;width:100%;
    min-height:44px;padding:8px 5px!important;
    font-size:11px!important;font-weight:800;
    white-space:normal;text-align:center;line-height:1.25;
  }
  #tab-banquier.hf-focus #sn-wrapper .sn-filter-foot{
    display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;
  }
  #tab-banquier.hf-focus #sn-wrapper .sn-search{min-width:0}
  #tab-banquier.hf-focus #sn-wrapper .sn-dialog{
    width:min(100%,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px))!important;
    border-radius:18px;
    scroll-padding-bottom:90px;
  }
  #tab-banquier.hf-focus #sn-wrapper .sn-form-grid label{font-size:13px}
  #tab-banquier.hf-focus #sn-wrapper .sn-form-buttons{
    padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));
  }
  #tab-banquier.hf-focus .arena-bilan-kpi strong{font-size:18px}
  #tab-banquier.hf-focus .arena-bilan-desc{font-size:12px}
}
@media(max-width:359px){
  #tab-banquier.hf-focus .mc-mobile-nav .mc-nav-btn span{font-size:9px}
  #tab-banquier.hf-focus #sn-wrapper #sn-filters button{font-size:10px!important}
  #tab-banquier.hf-focus .arena-bilan-kpi strong{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
  #tab-banquier.hf-focus *,#tab-banquier.hf-focus *::before,#tab-banquier.hf-focus *::after{
    transition-duration:.01ms!important;animation-duration:.01ms!important;
  }
}
