/* APP V3 — инсталирање + статистика (само изглед) */

/* ---------- лист за инсталирање ---------- */
#p3Install { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; font-family: var(--pp-font, 'Manrope', sans-serif); }
#p3Install .p3i-scrim { position: absolute; inset: 0; background: rgba(4,9,18,.62); opacity: 0; transition: opacity .25s ease; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#p3Install .p3i-sheet {
  position: relative; width: 100%; max-width: 480px; background: #111F35; color: #F2F4F8;
  border: 1px solid rgba(212,175,95,.18); border-bottom: 0; border-radius: 28px 28px 0 0;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -20px 60px rgba(0,0,0,.5);
  transform: translateY(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
#p3Install.open .p3i-scrim { opacity: 1; }
#p3Install.open .p3i-sheet { transform: none; }
#p3Install .p3i-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: #8C9AB3; display: grid; place-items: center; cursor: pointer; }
#p3Install svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#p3Install .p3i-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
#p3Install .p3i-icon { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
#p3Install .p3i-top b { display: block; font-size: 16px; font-weight: 800; }
#p3Install .p3i-top small { color: #8C9AB3; font-size: 12.5px; font-weight: 600; }
#p3Install h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
#p3Install p { margin: 0 0 16px; color: #A9B5C9; font-size: 14px; line-height: 1.5; }
#p3Install .p3i-feat { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#p3Install .p3i-feat li { background: #172842; border-radius: 14px; padding: 12px 8px; text-align: center; font-size: 12px; font-weight: 700; color: #DCE3EE; display: flex; flex-direction: column; align-items: center; gap: 6px; }
#p3Install .p3i-feat svg { color: #D4AF5F; width: 20px; height: 20px; }
#p3Install .p3i-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; counter-reset: s; }
#p3Install .p3i-steps li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; line-height: 1.4; background: #172842; border-radius: 14px; padding: 11px 12px; font-size: 14px; color: #DCE3EE; }
#p3Install .p3i-steps b { color: #F2F4F8; }
#p3Install .p3i-k { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: rgba(212,175,95,.14); color: #D4AF5F; display: grid; place-items: center; font-weight: 800; }
#p3Install .p3i-go { width: 100%; min-height: 54px; border: 0; border-radius: 30px; background: #D4AF5F; color: #0A1424; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(212,175,95,.6); }
#p3Install .p3i-later { width: 100%; min-height: 46px; margin-top: 6px; border: 0; background: transparent; color: #8C9AB3; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ---------- картичка во Студио ---------- */
#p3StatsTile {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 12px 0; padding: 14px;
  background: #111F35; border: 1px solid rgba(212,175,95,.22); border-radius: 18px; color: #F2F4F8; text-align: left; cursor: pointer; font: inherit;
}
#p3StatsTile .p3t-ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; background: rgba(212,175,95,.12); color: #D4AF5F; display: grid; place-items: center; }
#p3StatsTile svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#p3StatsTile .p3t-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
#p3StatsTile b { font-size: 15.5px; font-weight: 700; }
#p3StatsTile small { font-size: 12.5px; color: #8C9AB3; font-weight: 500; }

/* ---------- лист со статистика ---------- */
#p3Stats { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center; font-family: var(--pp-font, 'Manrope', sans-serif); }
#p3Stats .p3s-scrim { position: absolute; inset: 0; background: rgba(4,9,18,.6); opacity: 0; transition: opacity .25s; }
#p3Stats .p3s-sheet {
  position: relative; width: 100%; max-width: 640px; max-height: 92dvh; display: flex; flex-direction: column;
  background: #0E1A2E; color: #F2F4F8; border-radius: 26px 26px 0 0; border: 1px solid rgba(255,255,255,.06); border-bottom: 0;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
#p3Stats.open .p3s-scrim { opacity: 1; }
#p3Stats.open .p3s-sheet { transform: none; }
#p3Stats header { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
#p3Stats header > div { flex: 1; min-width: 0; }
#p3Stats header b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
#p3Stats header small { color: #8C9AB3; font-size: 12.5px; }
#p3Stats .p3s-ref { border: 1px solid rgba(212,175,95,.3); background: transparent; color: #D4AF5F; border-radius: 20px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
#p3Stats .p3s-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: #8C9AB3; display: grid; place-items: center; cursor: pointer; }
#p3Stats .p3s-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#p3Stats .p3s-body { overflow-y: auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
#p3Stats .p3s-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#p3Stats .p3s-tiles > div { background: #111F35; border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 12px; }
#p3Stats .p3s-tiles b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
#p3Stats .p3s-tiles b em { font-style: normal; font-size: 13px; color: #8C9AB3; font-weight: 700; }
#p3Stats .p3s-tiles small { color: #8C9AB3; font-size: 11.5px; font-weight: 600; }
#p3Stats .p3s-tiles > div:first-child { background: #D4AF5F; color: #0A1424; border-color: transparent; }
#p3Stats .p3s-tiles > div:first-child small { color: rgba(10,20,36,.7); }
#p3Stats .p3s-hint { color: #8C9AB3; font-size: 12.5px; line-height: 1.45; margin: 12px 2px; }
#p3Stats .p3s-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
#p3Stats .p3s-row { min-width: 0; }
#p3Stats .p3s-row { display: flex; align-items: center; gap: 12px; background: #111F35; border: 1px solid rgba(255,255,255,.05); border-radius: 16px; padding: 11px 12px; }
#p3Stats .p3s-row.none { opacity: .55; }
#p3Stats .p3s-av { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 1.5px solid rgba(212,175,95,.55); color: #D4AF5F; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; }
#p3Stats .p3s-mid { flex: 1; min-width: 0; }
#p3Stats .p3s-mid b { display: block; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#p3Stats .p3s-mid small { display: block; color: #8C9AB3; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#p3Stats .p3s-bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; width: 52px; flex: 0 0 52px; }
#p3Stats .p3s-bars i { flex: 1; background: #22365A; border-radius: 2px; }
#p3Stats .p3s-bars i.on { background: #D4AF5F; }
#p3Stats .p3s-num { text-align: right; flex: 0 0 auto; min-width: 64px; }
#p3Stats .p3s-num b { display: block; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
#p3Stats .p3s-num small { color: #8C9AB3; font-size: 11px; }
