/* KVANTYRA LEVELS + ACCOUNT + FEED V156 */

/* The level window lives directly under body, so no profile header can leak into it. */
body .kv-profile-v155-progress-overlay.kv-profile-v156-levels-overlay{
  position:fixed!important;inset:0!important;z-index:10420!important;display:none!important;
  align-items:flex-end!important;justify-content:center!important;padding:14px 12px calc(14px + env(safe-area-inset-bottom,0px))!important;
  overflow:hidden!important;background:#03040d!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body .kv-profile-v155-progress-overlay.kv-profile-v156-levels-overlay.active{display:flex!important}
body .kv-profile-v156-levels-overlay .kv-profile-v155-progress-sheet{
  position:relative!important;width:min(650px,100%)!important;max-height:min(91vh,940px)!important;overflow:auto!important;
  padding:17px!important;border:1px solid rgba(194,158,255,.25)!important;border-radius:29px 29px 22px 22px!important;
  background:radial-gradient(circle at 90% 0,rgba(158,68,255,.22),transparent 36%),linear-gradient(160deg,#18173d,#080a20 58%,#050716)!important;
  box-shadow:0 40px 115px rgba(0,0,0,.76),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
body .kv-profile-v156-levels-overlay .kv-profile-v155-progress-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin-bottom:12px!important}
body .kv-profile-v156-levels-overlay .kv-profile-v155-progress-head small{display:block!important;color:#aa91ff!important;font:900 9px/1 system-ui!important;letter-spacing:.17em!important}
body .kv-profile-v156-levels-overlay .kv-profile-v155-progress-head h3{margin:5px 0 0!important;color:#fff!important;font:950 25px/1.05 system-ui!important}
body .kv-profile-v156-levels-overlay .kv-profile-v155-progress-head p{max-width:470px!important;margin:7px 0 0!important;color:rgba(236,230,249,.58)!important;font:750 11px/1.45 system-ui!important}
body .kv-profile-v156-levels-overlay .kv-profile-v155-progress-close{width:42px!important;height:42px!important;flex:0 0 42px!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:14px!important;background:rgba(255,255,255,.07)!important;color:#fff!important;font-size:24px!important}
body .kv-profile-v156-levels-overlay .kv-profile-v155-progress-content{display:block!important}
body .kv-profile-v156-levels-overlay #kvProfileV145{margin:0!important;border-radius:23px!important}

/* Only level-related content remains behind the corner level control. */
body .kv-profile-v156-levels-overlay .kv-profile-v145-level{align-items:center!important}
body .kv-profile-v156-levels-overlay .kv-profile-v154-levels-button{
  grid-column:1/-1!important;width:100%!important;min-height:58px!important;margin-top:2px!important;padding:8px 12px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  border:1px solid rgba(199,169,255,.26)!important;border-radius:17px!important;
  background:linear-gradient(135deg,rgba(107,124,255,.18),rgba(187,67,255,.15))!important;color:#fff!important;text-align:left!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
}
body .kv-profile-v156-levels-overlay .kv-profile-v154-levels-button span{display:grid!important;gap:4px!important;min-width:0!important}
body .kv-profile-v156-levels-overlay .kv-profile-v154-levels-button b{font:950 12px/1.1 system-ui!important}
body .kv-profile-v156-levels-overlay .kv-profile-v154-levels-button small{color:rgba(235,229,249,.58)!important;font:750 9px/1.3 system-ui!important;white-space:normal!important}
body .kv-profile-v156-levels-overlay .kv-profile-v154-levels-button i{display:grid!important;place-items:center!important;width:31px!important;height:31px!important;flex:0 0 31px!important;border-radius:11px!important;background:rgba(255,255,255,.07)!important;color:#dbcaff!important;font:400 24px/1 system-ui!important}

/* Statistics now belong to Account and sit directly below transaction history. */
#account #kvProfileV147.kv-profile-v156-account-stats{margin-top:14px!important;padding:18px!important;border-radius:28px!important}
#account #kvProfileV147.kv-profile-v156-account-stats .kv-profile-v147-head{align-items:center!important}
#account #kvProfileV147.kv-profile-v156-account-stats .kv-profile-v147-head h3{font-size:25px!important}
#account #kvProfileV147.kv-profile-v156-account-stats .kv-profile-v156-stats-note{position:relative;z-index:1;margin:7px 0 0;color:rgba(235,230,249,.55);font-size:11px;line-height:1.45}
#account #kvProfileV147.kv-profile-v156-account-stats .kv-profile-v147-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-top:13px!important}
#account #kvProfileV147.kv-profile-v156-account-stats .kv-profile-v147-metric{min-height:91px!important;padding:10px 7px!important;display:grid!important;justify-items:center!important;align-content:center!important;text-align:center!important}
#account #kvProfileV147.kv-profile-v156-account-stats .kv-profile-v147-metric>i{margin:0 auto!important}
#account #kvProfileV147.kv-profile-v156-account-stats .kv-profile-v147-metric strong{font-size:19px!important}
#account #kvProfileV147.kv-profile-v156-account-stats .kv-profile-v147-metric b{max-width:100%!important;text-align:center!important}
#account #kvProfileV147.kv-profile-v156-account-stats .kv-profile-v147-metric small{max-width:100%!important;text-align:center!important}

/* Model name is text + icon on the media, without its own outlined plate. */
#feed.kv-feed-v131-screen.active .kv-feed-v106-model{
  padding:3px 4px!important;border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  text-shadow:0 2px 9px #000,0 0 16px rgba(0,0,0,.88)!important;
}
#feed.kv-feed-v131-screen.active .kv-feed-v106-model-icon{background:transparent!important;box-shadow:none!important;filter:drop-shadow(0 3px 8px rgba(0,0,0,.75))!important}

/* Reactions and actions use a visible lightweight glass bubble. */
#feed.kv-feed-v131-screen.active .kv-feed-v106-action,
#feed.kv-feed-v131-screen.active .kv-feed-v106-action.liked,
#feed.kv-feed-v131-screen.active .kv-feed-v141-reaction.active,
#feed.kv-feed-v131-screen.active .kv-feed-v140-save.saved{
  position:relative!important;overflow:hidden!important;
  border:1px solid rgba(235,224,255,.36)!important;
  background:radial-gradient(circle at 28% 10%,rgba(255,255,255,.17),transparent 35%),linear-gradient(165deg,rgba(30,31,58,.46),rgba(7,8,22,.27))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -10px 22px rgba(92,54,162,.09),0 10px 25px rgba(0,0,0,.25),0 0 0 .5px rgba(139,100,255,.2)!important;
  backdrop-filter:blur(13px) saturate(140%)!important;-webkit-backdrop-filter:blur(13px) saturate(140%)!important;
  text-shadow:0 2px 8px rgba(0,0,0,.92)!important;
}
#feed.kv-feed-v131-screen.active .kv-feed-v106-action:before{
  content:""!important;position:absolute!important;left:8px!important;right:8px!important;top:3px!important;height:1px!important;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.52),transparent)!important;pointer-events:none!important;
}
#feed.kv-feed-v131-screen.active .kv-feed-v141-reaction.active{border-color:rgba(205,154,255,.58)!important;background:radial-gradient(circle at 28% 10%,rgba(255,255,255,.2),transparent 34%),linear-gradient(165deg,rgba(104,57,169,.58),rgba(25,15,53,.42))!important}
#feed.kv-feed-v131-screen.active .kv-feed-v140-save.saved{border-color:rgba(143,181,255,.52)!important}

@media(max-width:430px){
  body .kv-profile-v155-progress-overlay.kv-profile-v156-levels-overlay{padding:112px 0 0!important}
  body .kv-profile-v156-levels-overlay .kv-profile-v155-progress-sheet{max-height:calc(100svh - 112px)!important;padding:14px!important;border-radius:27px 27px 0 0!important}
  body .kv-profile-v154-overlay{padding:112px 0 0!important}
  body .kv-profile-v154-overlay .kv-profile-v154-sheet{max-height:calc(100svh - 112px)!important;border-radius:27px 27px 0 0!important}
  body .kv-profile-v156-levels-overlay .kv-profile-v155-progress-head h3{font-size:23px!important}
  #account #kvProfileV147.kv-profile-v156-account-stats{padding:15px!important;border-radius:25px!important}
  #account #kvProfileV147.kv-profile-v156-account-stats .kv-profile-v147-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #account #kvProfileV147.kv-profile-v156-account-stats .kv-profile-v147-head{align-items:flex-start!important}
  #account #kvProfileV147.kv-profile-v156-account-stats .kv-profile-v147-head h3{font-size:22px!important}
}
