/* AFM Navigation v2 — single mobile navigation system */
:root{
  --afm-nav-h:68px;
}
.afm-nav2-bar{
  display:none;
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:900;
  grid-template-columns:repeat(5,minmax(0,1fr));
  padding:5px 7px calc(5px + env(safe-area-inset-bottom));
  background:rgba(5,11,18,.94);
  border-top:1px solid rgba(160,180,198,.15);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}
.afm-nav2-item{
  min-width:0;
  min-height:54px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#788b9a;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  padding:4px 2px;
  font:700 9px/1.05 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
.afm-nav2-item svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.afm-nav2-item.is-active{color:#f2f5f7;background:rgba(255,255,255,.035)}
.afm-nav2-item.is-active svg{color:#e1b84d}
.afm-nav2-item:active{background:rgba(255,255,255,.055)}
.afm-nav2-sheet-wrap{display:none;position:fixed;inset:0;z-index:1000}
.afm-nav2-sheet-wrap.open{display:block}
.afm-nav2-shade{position:absolute;inset:0;background:rgba(0,0,0,.62);backdrop-filter:blur(2px)}
.afm-nav2-sheet{
  position:absolute;
  left:0;right:0;bottom:0;
  max-height:min(82dvh,720px);
  overflow:auto;
  padding:9px 14px calc(18px + env(safe-area-inset-bottom));
  border-radius:24px 24px 0 0;
  border-top:1px solid rgba(225,184,77,.24);
  background:#08121b;
  box-shadow:0 -22px 60px rgba(0,0,0,.42);
}
.afm-nav2-grab{width:42px;height:4px;border-radius:4px;background:#41505d;margin:0 auto 13px}
.afm-nav2-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.afm-nav2-sheet-title{min-width:0}
.afm-nav2-sheet-title small{display:block;color:#758897;font-size:9px;font-weight:800;letter-spacing:.10em;text-transform:uppercase}
.afm-nav2-sheet-title strong{display:block;margin-top:3px;color:#f3f6f8;font-size:20px;letter-spacing:-.02em}
.afm-nav2-close{width:40px;height:40px;border:1px solid rgba(160,180,198,.18);border-radius:50%;background:#0d1924;color:#d5dce1;font-size:22px}
.afm-nav2-club{
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  margin-bottom:13px;
  padding:9px;
  border:1px solid rgba(160,180,198,.15);
  border-radius:14px;
  background:#0b1721;
}
.afm-nav2-club-logo{width:46px;height:46px;border-radius:11px;background:#111f2c;display:grid;place-items:center;overflow:hidden;color:#e1b84d;font-size:8px;font-weight:900}
.afm-nav2-club-logo img{width:100%;height:100%;object-fit:contain;padding:3px}
.afm-nav2-club strong{display:block;color:#eef2f4;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afm-nav2-club small{display:block;margin-top:3px;color:#8293a1;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afm-nav2-club a{min-height:36px;padding:0 10px;border:1px solid rgba(160,180,198,.18);border-radius:10px;color:#cdd5da;text-decoration:none;display:flex;align-items:center;font-size:9px;font-weight:800}
.afm-nav2-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.afm-nav2-link{
  min-width:0;
  min-height:68px;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:center;
  gap:9px;
  padding:10px;
  border:1px solid rgba(160,180,198,.14);
  border-radius:14px;
  background:#0a1620;
  color:#e8edf0;
  text-decoration:none;
}
.afm-nav2-link svg{width:21px;height:21px;fill:none;stroke:#96a6b3;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.afm-nav2-link strong{display:block;font-size:11px}
.afm-nav2-link small{display:block;margin-top:3px;color:#738695;font-size:8px;line-height:1.25}
.afm-nav2-link.admin{border-color:rgba(225,184,77,.22);background:rgba(225,184,77,.055)}
.afm-nav2-link.admin svg{stroke:#e1b84d}
.afm-nav2-section-label{
  display:block;
  margin:16px 2px 7px;
  color:#6f8190;
  font-size:8px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}
body.afm-nav2-open{overflow:hidden}

/* Shared AFM app header */
.afm-appbar{
  position:sticky;top:0;z-index:850;
  min-height:64px;
  padding:8px max(14px,calc((100vw - 1180px)/2));
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:center;gap:12px;
  background:rgba(5,11,18,.92);
  border-bottom:1px solid rgba(160,180,198,.14);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
.afm-appbar-left{min-width:0;display:flex;align-items:center;gap:10px}
.afm-appbar-home{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;text-decoration:none}
.afm-appbar-logo{width:42px;height:42px;object-fit:contain}
.afm-appbar-context{
  min-width:0;border:0;background:transparent;color:#fff;padding:0;text-align:left;
  display:block;cursor:pointer
}
.afm-appbar-context small{
  display:block;color:#7f92a1;font-size:8px;font-weight:850;letter-spacing:.10em;text-transform:uppercase
}
.afm-appbar-context strong{
  display:flex;align-items:center;gap:5px;min-width:0;margin-top:3px;
  color:#f3f6f8;font-size:14px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.afm-appbar-context strong span:first-child{overflow:hidden;text-overflow:ellipsis}
.afm-appbar-chevron{color:#e1b84d;font-size:11px;flex:0 0 auto}
.afm-appbar-actions{display:flex;align-items:center;gap:7px}
.afm-appbar-action{
  width:38px;height:38px;border:1px solid rgba(160,180,198,.16);border-radius:50%;
  background:#0a1620;color:#d7dfe4;text-decoration:none;display:grid;place-items:center;
  font-size:12px;font-weight:900
}
.afm-appbar-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.afm-appbar-avatar{color:#e1b84d}
.afm-club-switch-wrap{display:none;position:fixed;inset:0;z-index:1100}
.afm-club-switch-wrap.open{display:block}
.afm-club-switch-shade{position:absolute;inset:0;background:rgba(0,0,0,.64);backdrop-filter:blur(2px)}
.afm-club-switch-sheet{
  position:absolute;left:0;right:0;bottom:0;max-height:min(78dvh,650px);overflow:auto;
  padding:9px 14px calc(18px + env(safe-area-inset-bottom));
  border-radius:24px 24px 0 0;border-top:1px solid rgba(225,184,77,.24);
  background:#08121b;box-shadow:0 -20px 60px rgba(0,0,0,.4)
}
.afm-club-switch-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.afm-club-switch-head div small{display:block;color:#728594;font-size:8px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.afm-club-switch-head div strong{display:block;margin-top:3px;color:#f3f6f8;font-size:20px}
.afm-club-list{display:grid;gap:7px}
.afm-club-option{
  width:100%;min-height:66px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;gap:10px;padding:8px 10px;border:1px solid rgba(160,180,198,.14);
  border-radius:14px;background:#0a1620;color:#eef2f4;text-align:left
}
.afm-club-option.is-current{border-color:rgba(225,184,77,.36);background:rgba(225,184,77,.06)}
.afm-club-option-logo{
  width:48px;height:48px;border-radius:11px;background:#111f2c;display:grid;place-items:center;
  overflow:hidden;color:#e1b84d;font-size:8px;font-weight:900
}
.afm-club-option-logo img{width:100%;height:100%;object-fit:contain;padding:3px}
.afm-club-option strong{display:block;font-size:12px}
.afm-club-option small{display:block;margin-top:3px;color:#7d8f9d;font-size:9px}
.afm-club-option b{color:#e1b84d;font-size:15px}
body.afm-has-appbar>.page,
body.afm-has-appbar>.shell,
body.afm-has-appbar>.live-shell{padding-top:16px!important}
@media(min-width:901px){
  .afm-appbar{padding-left:max(22px,calc((100vw - 1180px)/2));padding-right:max(22px,calc((100vw - 1180px)/2))}
  .afm-club-switch-sheet{left:50%;right:auto;width:min(520px,calc(100vw - 32px));transform:translateX(-50%);border-radius:24px;bottom:22px}

  body.afm-home .side-nav.desktop-v2{
    width:220px!important;
    padding:14px 10px 16px!important;
    background:#07111a!important;
    border-right:1px solid rgba(160,180,198,.14)!important;
    box-shadow:none!important;
  }
  body.afm-home .side-nav.desktop-v2 .side-brand{
    min-height:58px!important;
    margin:0 4px 10px!important;
    padding:8px 9px!important;
    border-radius:14px!important;
    background:#0a1620!important;
    border:1px solid rgba(160,180,198,.12)!important;
    text-decoration:none!important;
  }
  body.afm-home .side-nav.desktop-v2 .side-brand img{width:40px!important;height:40px!important}
  body.afm-home .side-nav.desktop-v2 .side-brand strong{
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
    font-size:16px!important;letter-spacing:-.01em!important;color:#f3f6f8!important
  }
  body.afm-home .side-nav.desktop-v2 .side-brand small{font-size:8px!important;color:#7e909f!important;letter-spacing:.04em}
  body.afm-home .side-nav.desktop-v2 nav{padding:0!important}
  body.afm-home .side-nav.desktop-v2 .side-label{
    display:block;margin:13px 11px 5px;color:#5f7382;font-size:7px;font-weight:900;letter-spacing:.12em
  }
  body.afm-home .side-nav.desktop-v2 nav a{
    min-height:43px!important;
    margin:2px 0!important;
    padding:0 10px!important;
    border:0!important;
    border-radius:11px!important;
    background:transparent!important;
    color:#aebac3!important;
    display:flex!important;align-items:center!important;gap:9px!important;
    font-size:11px!important;font-weight:750!important;text-decoration:none!important
  }
  body.afm-home .side-nav.desktop-v2 nav a:hover{background:rgba(255,255,255,.035)!important;color:#eef2f4!important}
  body.afm-home .side-nav.desktop-v2 nav a.active{
    background:rgba(225,184,77,.08)!important;color:#f0cc67!important
  }
  body.afm-home .side-nav.desktop-v2 .nav-ico{
    width:22px!important;height:22px!important;display:grid!important;place-items:center!important;color:#8193a1!important
  }
  body.afm-home .side-nav.desktop-v2 nav a.active .nav-ico{color:#e1b84d!important}
  body.afm-home .side-nav.desktop-v2 .nav-ico svg{
    width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;
    stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important
  }
  body.afm-home .side-nav.desktop-v2 .side-tagline{
    margin:14px 10px 0!important;color:#506473!important;font-size:7px!important;line-height:1.45!important;letter-spacing:.08em!important
  }
  body.afm-home .dashboard-main{margin-left:220px!important;width:calc(100% - 220px)!important}
}
@media(max-width:900px){
  body.afm-nav2{padding-bottom:calc(var(--afm-nav-h) + env(safe-area-inset-bottom))}
  body.afm-nav2 .afm-nav2-bar{display:grid}
  body.afm-nav2 .mobile-bottom-nav,
  body.afm-nav2 .club-bottom-nav,
  body.afm-nav2 .section-bottom-nav,
  body.afm-nav2 nav.bottom{display:none!important}
  body.afm-nav2.afm-home .side-nav{display:none!important}
  body.afm-nav2.afm-home .dashboard-main{margin-left:0!important;width:100%!important}
  body.afm-nav2.afm-home .mobile-menu-btn{display:none!important}
  body.afm-nav2 .scroll-top{bottom:86px!important}
}
@media(min-width:901px){
  .afm-nav2-sheet-wrap{display:none!important}
}