/* Account-area navigation. Separate selectors keep the landing page unchanged. */
.cb-app-header { --cb-nav-surface: #102523; position: relative; z-index: 40; padding-top: 18px; }
.cb-app-bar { position: relative; display: flex; align-items: center; gap: 26px; min-height: 80px; padding: 12px 20px; border: 1px solid #83eac52b; border-radius: 20px; background: linear-gradient(115deg, #15332bd9, #0b1b20f5 45%, #0c1b20f5); box-shadow: 0 12px 40px #00000025, inset 0 1px 0 #d4fff213; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.cb-app-bar::before { content: ""; position: absolute; inset: -1px 18% auto; height: 1px; background: linear-gradient(90deg, transparent, #7dfac879, transparent); pointer-events: none; }
.cb-app-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: #f1faf6; }
.cb-app-emblem { display: grid; place-items: center; width: 38px; height: 44px; color: var(--cb-accent); transition: transform .2s; }
.cb-app-emblem svg { width: 46px; height: 46px; flex: none; }
.cb-app-brand:hover .cb-app-emblem { transform: rotate(-6deg); }
.cb-app-wordmark { display: block; font-size: 25px; line-height: 1; }
/* CricBoss logo (shared/_logo_mark, shared/_logo_wordmark). The wordmark scales with
   its parent's font size; BOSS uses the theme accent. */
.cb-logo-wordmark { display: block; height: .84em; width: auto; }
.cb-logo-accent { fill: var(--cb-accent); }
.cb-app-navigation { display: flex; align-items: center; margin-left: 20px; padding-left: 24px; border-left: 1px solid #c2ffdf18; }
.cb-app-nav-link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 15px; border: 1px solid transparent; border-radius: 12px; color: #a7c1b8; font-size: 13px; font-weight: 600; transition: color .2s, background .2s, border-color .2s; }
.cb-app-nav-link > svg { width: 18px; height: 18px; }
.cb-app-nav-link:hover { color: #e5fff2; background: #68efb90b; }
.cb-app-nav-link.is-current { background: linear-gradient(120deg, #55eab425, #55eab40b); border-color: #6be9b433; color: #a5f8d2; box-shadow: inset 0 1px 0 #beffe210; }
.cb-app-nav-link.is-current::after { content: ""; position: absolute; height: 2px; width: 18px; bottom: -1px; border-radius: 2px; background: #65efba; box-shadow: 0 0 10px #53e7b488; }
.cb-app-account { margin-left: auto; }
.cb-profile { position: relative; }
.cb-profile-trigger { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 4px 8px 4px 4px; border: 1px solid transparent; border-radius: 30px; cursor: pointer; list-style: none; user-select: none; transition: background .2s, border-color .2s; }
.cb-profile-trigger::-webkit-details-marker { display: none; }
.cb-profile-trigger::marker { content: ""; }
.cb-profile-trigger:hover, .cb-profile[open] > .cb-profile-trigger { background: #83eab80a; border-color: #7ae0b820; }
.cb-profile-avatar { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid #a2ffd247; border-radius: 50%; background: linear-gradient(140deg, #285847, #133830); color: #baf9da; box-shadow: inset 0 1px 0 #c0ffdb24; font-size: 13px; font-weight: 750; letter-spacing: .3px; }
.cb-profile-label { display: grid; gap: 4px; text-align: left; line-height: 1.1; }
.cb-profile-label strong { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e3f1eb; font-size: 12px; font-weight: 650; }
.cb-profile-label > span { font-size: 10px; color: #90b0a4; }
.cb-profile-chevron { display: grid; place-items: center; color: #88b5a3; }
.cb-profile-chevron svg { width: 18px; height: 18px; transition: transform .2s; }
.cb-profile[open] .cb-profile-chevron svg { transform: rotate(180deg); }
.cb-profile-panel { position: absolute; top: calc(100% + 16px); right: 0; width: 288px; max-width: calc(100vw - 48px); padding: 8px; border: 1px solid #83e6b83b; border-radius: 18px; background: linear-gradient(145deg, #17362e, #0a181c 70%); box-shadow: 0 20px 60px #0009, inset 0 1px 0 #b8ffe414; animation: cb-profile-enter .16s ease-out; }
.cb-profile:not([open]) .cb-profile-panel { display: none; }
.cb-profile-intro { display: grid; gap: 5px; padding: 16px 14px 18px; margin-bottom: 6px; border-bottom: 1px solid #d5ffe312; }
.cb-profile-intro .cb-profile-eyebrow { color: #72dcb0; font-size:10px; font-weight: 650; letter-spacing: 1.6px; margin-bottom: 5px; }
.cb-profile-intro strong { color: #f0faf6; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.cb-profile-intro > span:last-child { color: #9eb9ad; font-size: 12px; }
.cb-profile-action { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 10px; background: transparent; color: #d4e8df; cursor: pointer; text-align: left; font: inherit; font-size: 13px; transition: background .15s, color .15s; }
.cb-profile-action > svg { width: 20px; height: 20px; flex-shrink: 0; color: #87b3a0; }
.cb-profile-action small { display: block; margin-top: 3px; color: #91a9a0; font-size: 11px; }
.cb-profile-action:hover, .cb-profile-action[aria-current] { background: #78efbb0b; color: #a8f7d0; }
.cb-profile-action-arrow { margin-left: auto; color: #75a28e; }
.cb-profile-panel form { margin: 4px 0 0; }
.cb-profile-signout { color: #d2b6b6; }
.cb-profile-signout > svg { color: #ba8f92; }
.cb-profile-signout:hover { background: #fa8c9410; color: #ffc1c6; }
.cb-app-guest { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 12px; font-weight: 650; white-space: nowrap; }
.cb-app-login { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px; border-radius: 10px; color: #b3c9bf; }
.cb-app-login:hover, .cb-app-login[aria-current] { color: #9bf2c8; background: #66e8af0c; }
.cb-app-join { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 16px; border: 1px solid #9af8cf4d; border-radius: 12px; background: linear-gradient(125deg, #8cf4c7, #38d8a5); color: #06271d; box-shadow: inset 0 1px 0 #d0ffde5c, 0 3px 16px #48dca41c; transition: filter .2s, box-shadow .2s; }
.cb-app-join svg { width: 18px; height: 18px; }
.cb-app-join:hover { filter: brightness(1.08); box-shadow: 0 4px 22px #48dca42c; }
.cb-account-shell .cb-app-header :is(a, summary, button):focus-visible { outline: 2px solid #96f6c7; outline-offset: 3px; border-radius: 12px; }
@keyframes cb-profile-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .cb-app-bar { gap: 16px; }
  .cb-app-navigation { margin-left: 0; padding-left: 16px; }
  .cb-profile-label strong { max-width: 130px; }
}
@media (max-width: 760px) {
  .cb-profile-label { display: none; }
}
@media (max-width: 600px) {
  .cb-app-header { padding-top: 12px; }
  .cb-app-bar { min-height: 72px; gap: 10px; padding: 10px 12px; border-radius: 17px; }
  .cb-app-brand { gap: 8px; }
  .cb-app-emblem { width: 32px; height: 38px; }
  .cb-app-emblem svg { width: 40px; height: 40px; }
  .cb-app-wordmark { font-size: 23px; }
  .cb-app-navigation { margin-left: auto; border-left: 0; padding-left: 0; }
  .cb-app-nav-link { width: 44px; padding: 10px; }
  .cb-app-nav-link > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .cb-app-account { margin-left: 0; }
  .cb-profile-trigger { gap: 3px; padding: 3px; }
  .cb-profile-avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 12px; }
  .cb-profile-chevron svg { width: 14px; height: 14px; }
  .cb-profile-panel { right: -2px; top: calc(100% + 14px); max-width: calc(100vw - 60px); }
  .cb-app-guest { gap: 4px; font-size: 11px; }
  .cb-app-login { padding-inline: 8px; }
  .cb-app-join { padding: 10px; gap: 5px; border-radius: 10px; }
  .cb-app-join svg { display: none; }
}
@media (max-width: 380px) {
  .cb-app-guest { gap: 2px; }
  .cb-app-guest .cb-app-login { padding-inline: 4px; }
  .cb-app-guest .cb-app-join { padding-inline: 6px; }
  .cb-app-bar:has(.cb-app-guest) { gap: 4px; }
  .cb-app-bar { gap: 7px; }
  .cb-app-wordmark { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .cb-app-header *, .cb-app-header *::before, .cb-app-header *::after { animation: none; transition: none; }
}
