/* =========================================================
   NAVRON DASHBOARD EXTRAS
   - sun / moon theme switch (monochrome light mode)
   - professional profile menu
   Nothing here changes the existing dark look.
   ========================================================= */

/* ---------- Monochrome light mode ----------
   The whole dashboard is inverted + desaturated, so every page
   (including future ones) turns white with black text.
   Media is flipped back so avatars / images keep their shape. */
html[data-av-theme="mono"] {
  filter: invert(1) grayscale(1) brightness(1.04) contrast(1);
  background: #1b1b1b; /* becomes ~white after the filter */
}
html[data-av-theme="mono"] img,
html[data-av-theme="mono"] video,
html[data-av-theme="mono"] canvas,
html[data-av-theme="mono"] picture,
html[data-av-theme="mono"] iframe,
html[data-av-theme="mono"] svg image {
  filter: invert(1);
}

/* ---------- Theme switch ---------- */
.av-theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 58px;
  height: 34px;
  padding: 3px;
  margin: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: #1e1f22;
  color: #dbdee1;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .25s, border-color .25s;
}
.av-theme-switch:hover { border-color: rgba(255, 255, 255, .18); }
.av-theme-switch:focus-visible { outline: 2px solid #5865f2; outline-offset: 2px; }
.av-theme-switch .av-ts-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #5865f2;
  display: grid; place-items: center;
  color: #fff;
  transition: transform .28s cubic-bezier(.3, .9, .3, 1), background .25s;
}
.av-theme-switch svg { width: 15px; height: 15px; display: block; }
.av-theme-switch .av-ts-sun { display: none; }
html[data-av-theme="mono"] .av-theme-switch .av-ts-knob { transform: translateX(24px); background: #f2f3f5; color: #111; }
html[data-av-theme="mono"] .av-theme-switch .av-ts-sun { display: block; }
html[data-av-theme="mono"] .av-theme-switch .av-ts-moon { display: none; }
.av-theme-switch.av-floating {
  position: fixed; right: 16px; bottom: 16px; z-index: 9999; margin: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

/* ---------- Profile menu ---------- */
.av-menu-pro {
  width: 320px !important;
  max-width: calc(100vw - 24px);
  max-height: min(72vh, 560px);
  overflow-y: auto;
  padding: 8px !important;
  scrollbar-width: thin;
  scrollbar-color: #555860 #202126;
}
.av-menu-pro::-webkit-scrollbar { width: 8px; }
.av-menu-pro::-webkit-scrollbar-track { background: #202126; border-radius: 8px; }
.av-menu-pro::-webkit-scrollbar-thumb { background: #555860; border: 2px solid #202126; border-radius: 8px; }
.av-menu-pro::-webkit-scrollbar-thumb:hover { background: #737782; }
.av-menu-pro, .av-menu-pro * { box-sizing: border-box; }
.avm-card {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(88,101,242,.16), rgba(88,101,242,.05));
  border: 1px solid rgba(88,101,242,.22);
}
.avm-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.avm-card strong { display: block; color: #f2f3f5; font-size: 14px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.avm-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 3px;
  padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  background: rgba(255,255,255,.07); color: #b5bac1;
}
.avm-badge.premium { background: rgba(250,176,5,.14); color: #f7c948; }
.avm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.avm-stat { padding: 8px 6px; text-align: center; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05); }
.avm-stat b { display: block; color: #f2f3f5; font-size: 15px; line-height: 18px; }
.avm-stat span { color: #949ba4; font-size: 10.5px; }
.avm-title { padding: 8px 10px 4px; color: #6d7179; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.avm-item {
  display: flex !important; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px !important; border-radius: 8px; border: 0; background: transparent;
  color: #dbdee1 !important; font: 600 13px/18px inherit; text-align: left; text-decoration: none !important; cursor: pointer;
}
.avm-item:hover { background: rgba(255,255,255,.06); color: #fff !important; }
.avm-item i, .avm-item .avm-ico { width: 18px; text-align: center; color: #949ba4; font-size: 16px; flex: 0 0 auto; }
.avm-item small { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 800; }
.avm-item small.gold { background: rgba(250,176,5,.16); color: #f7c948; }
.avm-item.danger { color: #f87171 !important; }
.avm-item.danger i { color: #f87171; }
.avm-sep { height: 1px; margin: 6px 4px; background: rgba(255,255,255,.07); }
.avm-perks { margin: 5px 0; padding: 9px 10px; border-radius: 9px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); }
.avm-perks h6 { margin: 0; color: #dbdee1; font-size: 11px; font-weight: 750; line-height: 1.45; }
.avm-cta {
  display: block; margin-top: 8px; padding: 8px 10px; text-align: center; border-radius: 8px;
  background: #5865f2; color: #fff !important; font-weight: 700; font-size: 12.5px; text-decoration: none !important;
}
.avm-cta:hover { background: #4752c4; }

/* neutralise generic dropdown rules inherited from page styles */
.av-menu-pro .avm-info {
  background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important;
  box-shadow: none !important; height: auto !important; min-height: 0 !important; width: auto !important;
  display: block !important; flex: 1 1 auto; min-width: 0; position: static !important;
}
.av-menu-pro .avm-card img { width: 44px !important; height: 44px !important; margin: 0 !important; border-radius: 50% !important; }
.av-menu-pro .avm-card { margin: 0; }
.av-menu-pro .avm-badge { background: rgba(255,255,255,.07); border: 0; height: auto; }
.av-menu-pro .avm-badge.premium { background: rgba(250,176,5,.14); }
.av-menu-pro .avm-stat, .av-menu-pro .avm-perks, .av-menu-pro .avm-stats { height: auto; }

.av-custom-tooltip {
  position: fixed;
  z-index: 100000;
  max-width: min(280px, calc(100vw - 24px));
  padding: 8px 11px;
  border: 1px solid rgba(133, 153, 255, .34);
  border-radius: 9px;
  background: linear-gradient(135deg, #24263a, #171820);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .38), 0 0 16px rgba(88, 101, 242, .16);
  color: #eef0ff;
  font: 600 12px/1.45 "Poppins", system-ui, sans-serif;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
}
.av-custom-tooltip.is-visible { opacity: 1; transform: translateY(0); }

.navron-cookie-consent {
  position: fixed;
  z-index: 100001;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(760px, calc(100vw - 32px));
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: #202126;
  box-shadow: 0 18px 56px rgba(0,0,0,.48);
  color: #f2f3f5;
  transform: translateX(-50%);
}
.navron-cookie-copy { min-width: 0; }
.navron-cookie-copy strong { font-size: 14px; line-height: 1.4; }
.navron-cookie-copy p { max-width: 520px; margin: 5px 0 0; color: #b5bac1; font-size: 12px; line-height: 1.55; }
.navron-cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.navron-cookie-actions button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  background: #25262b;
  color: #f2f3f5;
  cursor: pointer;
  font: 600 12px/1.2 "Poppins", system-ui, sans-serif;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.navron-cookie-actions button:hover { border-color: rgba(255,255,255,.28); background: #303137; }
.navron-cookie-actions button:focus-visible { outline: 2px solid #aeb5ff; outline-offset: 2px; }
.navron-cookie-actions button:active { transform: translateY(1px); }
.navron-cookie-actions button.is-primary { border-color: #5865f2; background: #5865f2; color: #fff; }
.navron-cookie-actions button.is-primary:hover { border-color: #707bff; background: #4752c4; }
@media (max-width: 600px) {
  .navron-cookie-consent {
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    transform: none;
  }
  .navron-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .navron-cookie-actions button { min-width: 0; padding: 9px 8px; }
}


/* ---------- Account Premium pill (compact, never stretches) ---------- */
.av-menu-pro .avm-info { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 3px; }
.av-menu-pro .avm-info strong { max-width: 100% !important; }
.av-menu-pro .avm-badge,
.av-menu-pro .avm-badge.premium {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 2px 9px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  line-height: 16px !important;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px !important;
  box-shadow: none !important;
}
.av-menu-pro .avm-badge.premium {
  background: linear-gradient(135deg, rgba(250,176,5,.22), rgba(250,176,5,.1)) !important;
  border: 1px solid rgba(250,176,5,.32) !important;
  color: #f7c948 !important;
}
.av-menu-pro .avm-cta { color: #fff !important; }
.av-menu-pro .avm-cta:hover, .av-menu-pro .avm-cta:focus { background: #4752c4; color: #fff !important; }
