/* ── ПОРТАЛ RP (portal.php, portal_jobs.php) ── */
.portal { max-width: 1240px; margin: 0 auto; padding: 18px 20px 40px; box-sizing: border-box; }
.portal *, .portal *::before, .portal *::after { box-sizing: border-box; }

/* Баннер раздела */
.pt-banner {
  position: relative; overflow: hidden; display: flex; align-items: stretch; min-height: 210px;
  background: #11111f; border: 1px solid rgba(124,58,237,0.28); border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.pt-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 220px at 0% 0%, rgba(124,58,237,0.25), transparent 70%);
}
.pt-banner-left { position: relative; z-index: 2; flex: 1 1 58%; padding: 30px 34px; }
.pt-banner-right { position: absolute; right: 0; top: 0; bottom: 0; width: 52%; z-index: 1; }
.pt-banner-right img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45) saturate(1.1); }
.pt-banner-right::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #11111f 0%, rgba(17,17,31,0.75) 35%, rgba(17,17,31,0.1) 100%);
}
.pt-banner-emoji {
  position: absolute; right: 7%; top: 50%; transform: translateY(-50%); z-index: 2;
  font-size: 110px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
}
.pt-crumbs { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pt-crumbs a { color: var(--muted); text-decoration: none; transition: color .2s; }
.pt-crumbs a:hover { color: var(--accent); }
.pt-crumbs span { color: #c084fc; }
.pt-title { font-family: 'Russo One', sans-serif; font-size: 34px; line-height: 1.15; color: #fff; margin: 0 0 12px; }
.pt-title b { background: linear-gradient(90deg, #c084fc, #7c3aed); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pt-desc { color: #b4b4cc; font-size: 15px; line-height: 1.6; max-width: 560px; margin: 0; }

/* Заголовок секции */
.pt-section-title { font-family: 'Russo One', sans-serif; font-size: 20px; color: #fff; margin: 34px 0 10px; letter-spacing: .02em; }
.pt-divider { height: 3px; width: 64px; border-radius: 3px; background: linear-gradient(90deg, #7c3aed, #c084fc); margin-bottom: 20px; }

/* Панель фильтров */
.pt-filters { background: #11111f; border: 1px solid rgba(124,58,237,0.18); border-radius: 14px; padding: 16px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.pt-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-filter-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 74px; }
.pt-pill {
  cursor: pointer; user-select: none; font-size: 13px; font-weight: 700; color: #b4b4cc;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
  transition: all .2s;
}
.pt-pill:hover { color: #fff; border-color: rgba(192,132,252,0.45); }
.pt-pill.active { color: #fff; background: linear-gradient(135deg, #7c3aed, #9333ea); border-color: transparent; box-shadow: 0 4px 16px rgba(124,58,237,0.35); }

/* Сетка карточек */
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pt-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #11111f; border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.pt-card:hover { transform: translateY(-4px); border-color: var(--card-accent, #7c3aed); box-shadow: 0 14px 34px rgba(0,0,0,0.45), 0 0 0 1px var(--card-accent, #7c3aed) inset; }
.pt-card.hidden { display: none; }
.pt-card-img {
  position: relative; height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pt-card-img::before {
  content: ''; position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 22px 22px;
}
.pt-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(17,17,31,0.95) 100%); }
.pt-card-emoji { position: relative; z-index: 1; font-size: 66px; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5)); transition: transform .3s; }
.pt-card:hover .pt-card-emoji { transform: scale(1.12) rotate(-4deg); }
.pt-card-lvl {
  position: absolute; z-index: 2; top: 12px; left: 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(10,10,20,0.65); border: 1px solid rgba(255,255,255,0.15); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.pt-card-body { padding: 4px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pt-card-name { font-family: 'Russo One', sans-serif; font-size: 17px; color: #fff; margin: 0 0 12px; line-height: 1.25; }
.pt-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,0.07); font-size: 13px; }
.pt-row:last-of-type { border-bottom: none; }
.pt-lbl { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.pt-val { color: #e8e8f0; font-weight: 700; text-align: right; }
.pt-val.green { color: #22c55e; }
.pt-val.purple { color: #c084fc; }
.pt-val.gold { color: #eab308; }
.pt-spec { margin-top: 10px; color: #8a8aa8; font-size: 12px; line-height: 1.5; }
.pt-more { margin-top: auto; padding-top: 14px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--card-accent, #c084fc); }
.pt-empty { display: none; text-align: center; color: var(--muted); padding: 40px 0; }

/* Хаб портала */
.pt-hub-card .pt-card-img { height: 170px; }
.pt-hub-card.soon { opacity: .55; pointer-events: none; }
.pt-soon { position: absolute; z-index: 2; top: 12px; right: 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; color: #eab308; background: rgba(10,10,20,0.7); border: 1px solid rgba(234,179,8,0.35); padding: 4px 10px; border-radius: 999px; }

/* Страница работы */
.pt-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); transition: all .2s; }
.pt-back:hover { color: #fff; border-color: #7c3aed; background: rgba(124,58,237,0.12); }
.pt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.pt-stat { background: #11111f; border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 16px 18px; }
.pt-stat-lbl { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pt-stat-val { font-family: 'Russo One', sans-serif; font-size: 22px; color: #fff; }
.pt-layout { display: grid; grid-template-columns: 1fr 340px; gap: 18px; margin-top: 18px; align-items: start; }
.pt-panel { background: #11111f; border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 22px; }
.pt-panel h3 { font-family: 'Russo One', sans-serif; font-size: 17px; color: #fff; margin: 0 0 14px; }
.pt-panel p { color: #b4b4cc; line-height: 1.65; font-size: 14px; margin: 0; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px; }
.pt-table th:not(:first-child), .pt-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.pt-table td { padding: 12px; color: #e8e8f0; border-top: 1px solid rgba(255,255,255,0.06); }
.pt-table tr:hover td { background: rgba(124,58,237,0.07); }
.pt-table td.h1 { color: #22c55e; font-weight: 700; }
.pt-table td.h3 { color: #c084fc; font-weight: 800; }
.pt-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.pt-steps li { counter-increment: s; position: relative; padding: 0 0 14px 40px; color: #b4b4cc; font-size: 14px; line-height: 1.5; }
.pt-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
}
.pt-steps b { color: #fff; }
.pt-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .pt-stats { grid-template-columns: repeat(2, 1fr); }
  .pt-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .portal { padding: 12px 16px 30px; }
  .pt-banner-left { padding: 22px 20px; }
  .pt-banner-right { width: 100%; opacity: .5; }
  .pt-banner-emoji { font-size: 70px; right: 14px; top: 22px; transform: none; opacity: .35; }
  .pt-title { font-size: 26px; }
  .pt-filter-label { min-width: 100%; }
  .pt-table { font-size: 13px; }
  .pt-table td, .pt-table th { padding-left: 6px; padding-right: 6px; }
}

/* tables in narrow columns: let text wrap instead of spilling out of the panel */
.pt-table.wrap td, .pt-table.wrap th { white-space: normal !important; overflow-wrap: anywhere; }
.pt-table.wrap td:not(:first-child), .pt-table.wrap th:not(:first-child) { text-align: left; }
.pt-table.wrap td.h1 { white-space: nowrap !important; text-align: right; }
.pt-table code { white-space: normal; overflow-wrap: anywhere; }
/* salary by player level */
.pt-lvl { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; color: #b4b4cc; font-size: 13px; flex-wrap: wrap; }
.pt-lvl select { background: #0b0b16; color: #fff; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 5px 10px; font: inherit; }
.pt-lvl b { color: #22c55e; }
