/* COACH AI V3 — паметен асистент + нови пријави */
#p3Coach {
  margin: 0 0 14px; padding: 16px 14px; border-radius: 22px; font-family: var(--pp-font, 'Manrope', sans-serif);
  background: linear-gradient(180deg, #14253F 0%, #0F1C31 100%); border: 1px solid rgba(212,175,95,.22); color: #F2F4F8;
}
#p3Coach svg, #p3AppsTile svg, #p3Apps svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p3a-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.p3a-head b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.p3a-head small { color: #8C9AB3; font-size: 12.5px; }
.p3a-ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; display: grid; place-items: center; color: #0A1424; background: linear-gradient(135deg, #E9C77D, #C99A3E); box-shadow: 0 8px 20px -8px rgba(212,175,95,.7); }
.p3a-plan { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(212,175,95,.08); border: 1px solid rgba(212,175,95,.2); margin-bottom: 10px; }
.p3a-plan > div { flex: 1; min-width: 0; }
.p3a-plan b { display: block; font-size: 14.5px; font-weight: 800; }
.p3a-plan small { color: #A9B5C9; font-size: 12px; font-variant-numeric: tabular-nums; }
.p3a-btn {
  min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid rgba(212,175,95,.4); background: transparent;
  color: #D4AF5F; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.p3a-btn.gold { background: #D4AF5F; color: #0A1424; border-color: #D4AF5F; }
.p3a-btn:disabled { opacity: .4; cursor: default; }
.p3a-card { padding: 12px; border-radius: 16px; background: #111F35; border: 1px solid rgba(255,255,255,.06); margin-top: 8px; animation: p3aIn .3s ease both; }
.p3a-card.warn { border-color: rgba(255,170,90,.28); }
.p3a-card.good { border-color: rgba(120,220,160,.28); }
.p3a-row { display: flex; align-items: flex-start; gap: 10px; }
.p3a-sic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: #D4AF5F; }
.p3a-card.warn .p3a-sic { color: #FFB27A; background: rgba(255,170,90,.1); }
.p3a-card.good .p3a-sic { color: #7FE0A8; background: rgba(120,220,160,.1); }
.p3a-sic svg { width: 17px !important; height: 17px !important; }
.p3a-txt { flex: 1; min-width: 0; }
.p3a-txt b { display: block; font-size: 14.5px; font-weight: 800; }
.p3a-txt small { display: block; color: #A9B5C9; font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.p3a-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: #6F7F99; cursor: pointer; display: grid; place-items: center; }
.p3a-x svg { width: 15px !important; height: 15px !important; }
.p3a-msg {
  width: 100%; margin: 10px 0 8px; padding: 10px 12px; box-sizing: border-box; resize: vertical; min-height: 70px;
  background: #0A1424; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; color: #DCE3EE; font: inherit; font-size: 13.5px !important; line-height: 1.45;
}
.p3a-card > .p3a-btn { margin-top: 8px; width: 100%; }
.p3a-msg + .p3a-btn { margin-top: 0; }
.p3a-empty { color: #8C9AB3; font-size: 13px; margin: 6px 2px 0; }
@keyframes p3aIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- картичка „Нови пријави“ ---------- */
#p3AppsTile {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 12px 0 0; padding: 14px; font: inherit; text-align: left; cursor: pointer;
  background: linear-gradient(135deg, rgba(212,175,95,.18), rgba(212,175,95,.06)); border: 1px solid rgba(212,175,95,.45); border-radius: 18px; color: #F2F4F8;
  animation: p3aIn .35s ease both;
}
#p3AppsTile .p3t-ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; background: #D4AF5F; color: #0A1424; display: grid; place-items: center; }
#p3AppsTile .p3t-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
#p3AppsTile b { font-size: 15.5px; font-weight: 800; }
#p3AppsTile small { font-size: 12.5px; color: #C9D2E0; }
.p3a-badge { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: #D4AF5F; color: #0A1424; font-weight: 800; font-size: 13px; display: grid; place-items: center; }

/* ---------- лист „Нови пријави“ ---------- */
#p3Apps { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center; font-family: var(--pp-font, 'Manrope', sans-serif); }
#p3Apps .p3s-scrim { position: absolute; inset: 0; background: rgba(4,9,18,.6); opacity: 0; transition: opacity .25s; }
#p3Apps .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); }
#p3Apps.open .p3s-scrim { opacity: 1; }
#p3Apps.open .p3s-sheet { transform: none; }
#p3Apps header { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
#p3Apps header > div { flex: 1; }
#p3Apps header b { display: block; font-size: 19px; font-weight: 800; }
#p3Apps header small { color: #8C9AB3; font-size: 12.5px; }
#p3Apps .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; }
#p3Apps .p3s-body { overflow-y: auto; padding: 14px 16px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; }
#p3Apps .p3s-hint { color: #8C9AB3; font-size: 13px; }
.p3ap-card { background: #111F35; border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 14px; }
.p3ap-top b { display: block; font-size: 16px; font-weight: 800; }
.p3ap-top small { color: #8C9AB3; font-size: 12.5px; word-break: break-all; }
.p3ap-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.p3ap-tags span { padding: 5px 10px; border-radius: 12px; background: #172842; color: #DCE3EE; font-size: 12px; font-weight: 700; }
.p3ap-plan { margin: 0 0 12px; color: #A9B5C9; font-size: 13px; }
.p3ap-plan b { color: #D4AF5F; }
.p3ap-act { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
