/* Royal RP — кабінет гравця у стилі лаунчера Royal RP 2.0: заставки лаунчера, Montserrat курсивом, бокове меню, неонові картки.
   Розмір плавно залежить і від ширини, і від висоти вікна (ноутбук 768 px, FullHD, 2K/4K, телефон). */
:root{
  --primary: #E0B858; --primary-rgb: 224, 184, 88; --bright: #F2C75C; --neon: 1;
  --font: Gilroy, Roboto, "Segoe UI", sans-serif; --display: Montserrat, "Segoe UI", sans-serif;
  --text: #fff; --muted: rgba(255,255,255,.62); --muted2: rgba(255,255,255,.42);
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12); --inner: rgba(255,255,255,.035); --inner2: rgba(255,255,255,.06);
  --card: linear-gradient(180deg, rgba(10,10,12,.9), rgba(10,10,12,.66)); --r: .7rem;
  --good: #57d97a; --bad: #ff5a5a; --warn: #f3a33c;
}
html{ font-size: clamp(12.5px, min(calc(9px + .36vw), calc(6px + 1.1vh)), 16px); }
*{ box-sizing: border-box; }
body{ margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text); background: #050608; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a{ color: var(--bright); }
button, input, select, textarea{ font-family: inherit; }
.hidden{ display: none !important; }
.muted{ color: var(--muted); }
.small{ font-size: .8rem; }
p{ margin: 0 0 .55rem; line-height: 1.55; font-size: .9rem; }
.ic{ width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill{ fill: currentColor; stroke: none; }

/* ── фон ── */
.bg-stage{ position: fixed; inset: -2%; z-index: 0; overflow: hidden; background: #050608; }
.bg-slide{ position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.6s ease; animation: bgKb 20s linear both; }
.bg-slide.on{ opacity: 1; }
@keyframes bgKb{ from{ transform: scale(1.04) translate3d(-1%,0,0); } to{ transform: scale(1.12) translate3d(1%,-1%,0); } }
.bg-shade{ position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,6,10,.92) 0%, rgba(5,6,10,.78) 24%, rgba(5,6,10,.55) 60%, rgba(5,6,10,.72) 100%),
              linear-gradient(0deg, rgba(5,6,10,.95) 0%, rgba(5,6,10,.35) 40%, rgba(5,6,10,.55) 100%); }
.bg-glow{ position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle 520px at -80px -120px, rgba(var(--primary-rgb),.3), rgba(var(--primary-rgb),0) 72%),
              radial-gradient(circle 420px at 110% 115%, rgba(var(--primary-rgb),.14), rgba(var(--primary-rgb),0) 70%); }
@media (prefers-reduced-motion: reduce){ .bg-slide{ animation: none; transition: none; } .p-card::after{ animation: none !important; opacity: 0; } }

/* ── неон-картка ── */
@property --hx{ syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --hy{ syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.p-card{ position: relative; background: var(--card); border: 1px solid rgba(var(--primary-rgb), calc(.22 * var(--neon))); border-radius: var(--r);
  box-shadow: 0 0 calc(22px * var(--neon)) rgba(var(--primary-rgb), calc(.14 * var(--neon))), 0 24px 50px -14px rgba(0,0,0,.5); }
.p-card::before, .p-card::after{ content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.p-card::before{ padding: 1px; background: linear-gradient(180deg, rgba(var(--primary-rgb),.55), rgba(var(--primary-rgb),.08) 55%, rgba(var(--primary-rgb),.25)); }
.p-card::after{ padding: 2px; background: radial-gradient(circle 150px at var(--hx) var(--hy), rgba(var(--primary-rgb),.95), rgba(var(--primary-rgb),.35) 35%, rgba(var(--primary-rgb),0) 70%);
  animation: neon 12s ease-in-out infinite; }
.p-card > *{ position: relative; z-index: 2; }
@keyframes neon{ 0%{--hx:0%;--hy:0%;opacity:0} 8%{opacity:1} 26%{--hx:100%;--hy:0%;opacity:1} 34%{opacity:0} 40%{--hx:100%;--hy:100%;opacity:0} 48%{opacity:1}
  66%{--hx:0%;--hy:100%;opacity:1} 74%{opacity:0} 80%{--hx:0%;--hy:40%;opacity:0} 88%{opacity:1} 100%{--hx:0%;--hy:0%;opacity:0} }

/* ── вхід ── */
.app{ position: relative; z-index: 1; min-height: 100vh; }
.login-card{ width: min(26rem, calc(100% - 2rem)); margin: 12vh auto 0; padding: 1.8rem 1.6rem; text-align: center; display: grid; gap: .9rem; justify-items: center; }
.login-card h2{ margin: 0; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.25rem; }
.login-logo{ width: 4.2rem; height: 4.2rem; filter: drop-shadow(0 0 10px rgba(var(--primary-rgb),.5)); }

/* ── каркас кабінету ── */
.shell{ display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 1.1rem; max-width: 78rem; margin: 0 auto; padding: 1rem 1.4rem 2rem 1rem; min-height: 100vh; }
.side{ display: flex; flex-direction: column; justify-content: space-between; padding: 1rem .75rem .9rem; position: sticky; top: 1rem; height: calc(100vh - 2rem); }
.brand{ display: flex; align-items: center; gap: .75rem; padding: .1rem .25rem; text-decoration: none; color: var(--text); }
.brand img{ width: 3.1rem; height: 3.1rem; object-fit: contain; filter: drop-shadow(0 0 8px rgba(var(--primary-rgb),.45)); }
.brand-name{ font-family: var(--display); font-weight: 900; font-style: italic; font-size: 1.45rem; line-height: 1; white-space: nowrap; }
.brand-name b{ background: linear-gradient(180deg, #FFE7A6 0%, var(--bright) 45%, var(--primary) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag{ margin-top: .3rem; font-family: var(--display); font-weight: 700; font-size: .58rem; letter-spacing: .5em; color: var(--primary); }
.divider{ height: 1px; margin: 1rem .1rem; background: linear-gradient(90deg, rgba(var(--primary-rgb),.35), rgba(var(--primary-rgb),0)); }
.menu{ display: grid; gap: .4rem; }
.menu-item{ width: 100%; display: flex; align-items: center; gap: .75rem; padding: .72rem .85rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--inner);
  color: var(--muted); text-align: left; font-size: .88rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s; }
.menu-item .ic{ font-size: 1.1rem; color: var(--muted2); transition: color .2s; }
.menu-item:hover{ color: #fff; background: var(--inner2); border-color: var(--line2); }
.menu-item:hover .ic{ color: var(--primary); }
.menu-item.active, .menu-item.active:hover{ color: #111; background: linear-gradient(180deg, #FFE08A 0%, var(--bright) 40%, var(--primary) 100%); border-color: rgba(255,231,166,.8);
  box-shadow: 0 0 22px rgba(var(--primary-rgb),.35); font-family: var(--display); font-style: italic; font-weight: 900; }
.menu-item.active .ic{ color: #111; }
.menu-item .badge{ margin-left: auto; font-size: .66rem; font-weight: 800; padding: .05rem .45rem; border-radius: 1rem; background: rgba(var(--primary-rgb),.2); color: var(--bright); font-style: normal; }
.menu-item.active .badge{ background: rgba(0,0,0,.2); color: #111; }
.side-foot{ display: grid; gap: .4rem; }

.main{ min-width: 0; display: grid; align-content: start; gap: 1rem; }
.topbar{ display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.topbar h1{ margin: 0; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.7rem; letter-spacing: .01em; line-height: 1.1; }
.topbar h1 span{ background: linear-gradient(180deg, #FFE7A6 0%, var(--bright) 45%, var(--primary) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.user-chip{ margin-left: auto; display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem .35rem .4rem; border-radius: 2rem; background: rgba(10,10,12,.6); border: 1px solid var(--line2); }
.user-chip img, .user-chip .ava{ width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: rgba(var(--primary-rgb),.2); color: var(--bright); font-weight: 800; }
.user-chip .nm{ font-weight: 700; font-size: .85rem; white-space: nowrap; }
.user-chip .coins{ display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 1rem; background: rgba(var(--primary-rgb),.14); color: var(--bright); font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums; }
.grid2{ display: grid; gap: 1rem; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
.grid2 > *{ min-width: 0; }

.card{ padding: 1.15rem 1.25rem; }
.card h3{ margin: 0 0 .7rem; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.02rem; letter-spacing: .01em; }
.card h3 .ic{ color: var(--primary); margin-right: .35rem; vertical-align: -.12em; }
.caps{ font-family: var(--display); font-weight: 700; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted2); }

/* ── кнопки й поля ── */
.btn{ position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .7rem 1.2rem; border-radius: .7rem; cursor: pointer;
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; color: #141006;
  background: linear-gradient(180deg, #FFE08A 0%, var(--bright) 40%, var(--primary) 100%); border: 1px solid rgba(255,231,166,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 22px rgba(var(--primary-rgb),.3), 0 8px 22px -10px rgba(0,0,0,.6); text-decoration: none; }
.btn::after{ content: ""; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine{ 0%,60%{ left: -80px; } 100%{ left: 110%; } }
.btn:hover{ filter: brightness(1.05); }
.btn:disabled{ filter: grayscale(.7) brightness(.65); cursor: default; }
.btn:disabled::after{ display: none; }
.btn.wide{ width: 100%; }
.btn.ghost{ font-style: normal; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--muted); background: rgba(10,10,12,.55); border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost::after{ display: none; }
.btn.ghost:hover{ color: #fff; border-color: rgba(var(--primary-rgb),.45); background: rgba(var(--primary-rgb),.1); }
.btn.sm{ padding: .42rem .8rem; font-size: .74rem; }
.btn.danger{ color: #ffc0c0; border-color: rgba(255,90,90,.5); background: rgba(255,90,90,.08); }
.btn .ic{ font-size: 1.05rem; }
.discord{ font-style: normal; text-transform: none; color: #fff; background: #5865F2; border-color: #7983f5; box-shadow: 0 0 22px rgba(88,101,242,.35); }
.input{ width: 100%; height: 2.5rem; padding: 0 .85rem; border-radius: .6rem; background: rgba(8,8,10,.75); border: 1px solid var(--line2); color: var(--text); font-size: .9rem; outline: none; }
.input:focus{ border-color: rgba(var(--primary-rgb),.75); box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb),.3); }
textarea.input{ height: auto; padding: .55rem .85rem; resize: vertical; }
select.input{ width: auto; }
.code-input{ text-align: center; font-size: 1.35rem; letter-spacing: .45em; height: 2.9rem; font-variant-numeric: tabular-nums; }
.row{ display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row > .input{ flex: 1 1 10rem; }
.stack{ display: grid; gap: .6rem; }
.chip{ display: inline-block; font-weight: 800; font-size: .62rem; letter-spacing: .1em; padding: .15rem .5rem; border-radius: .35rem; text-transform: uppercase; border: 1px solid var(--line2); background: var(--inner2); color: var(--muted); white-space: nowrap; }
.chip.good{ background: rgba(87,217,122,.14); color: var(--good); border-color: rgba(87,217,122,.4); }
.chip.bad{ background: rgba(255,90,90,.12); color: var(--bad); border-color: rgba(255,90,90,.4); }
.chip.gold{ background: rgba(var(--primary-rgb),.16); color: var(--bright); border-color: rgba(var(--primary-rgb),.45); }
.cell{ border-radius: .6rem; background: var(--inner); border: 1px solid var(--line); }
.cell.hov{ cursor: pointer; transition: border-color .2s, background .2s; }
.cell.hov:hover{ border-color: rgba(var(--primary-rgb),.6); background: rgba(var(--primary-rgb),.06); }
.alert{ padding: .7rem .9rem; border-radius: .6rem; border: 1px solid rgba(243,163,60,.45); background: rgba(243,163,60,.08); color: #ffd9a6; font-size: .85rem; }
.alert.bad{ border-color: rgba(255,90,90,.45); background: rgba(255,90,90,.08); color: #ffc0c0; }
.alert.good{ border-color: rgba(87,217,122,.4); background: rgba(87,217,122,.08); color: #bff3cd; }
.list{ display: grid; gap: .45rem; }
.li{ display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: .7rem; align-items: center; padding: .55rem .8rem; font-size: .82rem; }
.li > span{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li b{ font-weight: 700; }
details summary{ cursor: pointer; margin-bottom: .5rem; color: var(--muted); font-size: .82rem; }
.kbd{ display: inline-block; padding: 0 .4rem; border-radius: .3rem; border: 1px solid rgba(var(--primary-rgb),.5); color: var(--bright); font-weight: 700; }
.steps{ margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.6; font-size: .88rem; }

/* ── поповнення ── */
.balance-hero{ display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.balance-hero .coin{ width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; color: #141006; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.4rem;
  background: radial-gradient(circle at 35% 30%, #FFF1C2, var(--bright) 45%, var(--primary) 100%); box-shadow: 0 0 22px rgba(var(--primary-rgb),.45); }
.balance-hero b{ display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tu-row{ display: flex; gap: .55rem; flex-wrap: wrap; align-items: stretch; }
.tu-input{ flex: 1 1 13rem; display: flex; align-items: center; gap: .55rem; padding: 0 .9rem; border-radius: .7rem; background: rgba(8,8,10,.75); border: 1px solid rgba(var(--primary-rgb),.45); }
.tu-input:focus-within{ border-color: rgba(var(--primary-rgb),.9); box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb),.35); }
.tu-input input{ flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); outline: none; height: 3rem; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.45rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.tu-input input::-webkit-outer-spin-button, .tu-input input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.tu-input span{ color: var(--muted); font-weight: 800; }
.tu-row .btn{ min-width: 10rem; }
.chips{ display: flex; flex-wrap: wrap; gap: .4rem; }
.chips button{ padding: .32rem .8rem; border-radius: 2rem; border: 1px solid var(--line2); background: var(--inner); color: var(--muted); font-weight: 700; font-size: .8rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.chips button:hover{ color: #fff; border-color: rgba(var(--primary-rgb),.55); }
.tu-sum{ font-size: .9rem; color: var(--muted); min-height: 1.3rem; }
.tu-sum b{ color: var(--text); }
.good{ color: var(--good); } .bad{ color: var(--bad); }

/* ── промокод на оплаті (2026-11-14) ── */
.promo-open{ display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 2rem; border: 1px dashed rgba(var(--primary-rgb),.6);
  background: rgba(var(--primary-rgb),.06); color: var(--bright); font: 700 .82rem var(--font); cursor: pointer; }
.promo-open:hover:not(:disabled){ background: rgba(var(--primary-rgb),.14); }
.promo-open:disabled{ opacity: .5; cursor: default; }
.promo-open .ic, .promo .ic{ width: 1rem; height: 1rem; flex: none; }
.promo-form{ display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.promo-form .input{ flex: 0 1 12rem; min-width: 0; letter-spacing: .08em; font-weight: 800; }
.promo{ display: flex; align-items: center; gap: .55rem; padding: .55rem .8rem; border-radius: .6rem; font-size: .85rem; }
.promo.ok{ border: 1px solid rgba(87,217,122,.4); background: rgba(87,217,122,.08); color: #bff3cd; }
.promo.ok .ic{ stroke: var(--good); }
.promo > span{ flex: 1; min-width: 0; }
.promo-x{ flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid var(--line2); background: var(--inner); color: var(--muted); cursor: pointer; }
.promo-x:hover{ color: #fff; border-color: rgba(255,90,90,.5); }
.tu-sum s{ font-weight: 400; }

/* ── Royal Premium (2026-11-14) — кольори рівнів як у грі (royal_vip config) ── */
.balance-hero .pm-crown .ic{ width: 1.6rem; height: 1.6rem; stroke: #141006; }
.pm-tiers{ display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .6rem; margin-top: .7rem; }
.pm-tier{ --tc: 205, 127, 50; position: relative; display: flex; flex-direction: column; gap: .35rem; text-align: left; padding: .9rem 1rem; border-radius: .8rem; cursor: pointer; color: var(--text);
  font: inherit; background: linear-gradient(160deg, rgba(var(--tc),.16), rgba(10,10,12,.55) 55%); border: 1px solid rgba(var(--tc),.35); transition: border-color .2s, box-shadow .2s, transform .2s; }
.pm-tier.silver{ --tc: 192, 199, 208; } .pm-tier.gold{ --tc: 242, 199, 92; }
.pm-tier:hover{ border-color: rgba(var(--tc),.7); transform: translateY(-1px); }
.pm-tier.on{ border-color: rgb(var(--tc)); box-shadow: 0 0 0 1px rgb(var(--tc)), 0 0 22px rgba(var(--tc),.28); }
.pm-tier.on::after{ content: '✓'; position: absolute; top: .7rem; right: .8rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .8rem; color: #141006; background: rgb(var(--tc)); }
.pm-name{ font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.25rem; text-transform: uppercase; color: rgb(var(--tc)); }
.pm-price{ font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pm-price small{ font-size: .72rem; font-weight: 700; color: var(--muted); font-style: normal; font-family: var(--font); }
.pm-tier ul{ margin: .35rem 0 0; padding: 0; list-style: none; display: grid; gap: .25rem; font-size: .8rem; color: var(--muted); }
.pm-tier li{ padding-left: 1rem; position: relative; }
.pm-tier li::before{ content: ''; position: absolute; left: 0; top: .45em; width: .4rem; height: .4rem; border-radius: 50%; background: rgb(var(--tc)); }
.pm-range{ display: flex; align-items: center; gap: .9rem; padding: .6rem .9rem; border-radius: .7rem; background: rgba(8,8,10,.75); border: 1px solid rgba(var(--primary-rgb),.45); }
.pm-range input{ --p: 50%; flex: 1; min-width: 0; height: 1.6rem; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.pm-range input::-webkit-slider-runnable-track{ height: .4rem; border-radius: 1rem; background: linear-gradient(90deg, var(--primary) var(--p), rgba(255,255,255,.12) var(--p)); }
.pm-range input::-moz-range-track{ height: .4rem; border-radius: 1rem; background: rgba(255,255,255,.12); }
.pm-range input::-moz-range-progress{ height: .4rem; border-radius: 1rem; background: var(--primary); }
.pm-range input::-webkit-slider-thumb{ -webkit-appearance: none; width: 1.2rem; height: 1.2rem; margin-top: -.4rem; border-radius: 50%; background: var(--bright); border: 2px solid #141006; box-shadow: 0 0 12px rgba(var(--primary-rgb),.6); }
.pm-range input::-moz-range-thumb{ width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--bright); border: 2px solid #141006; }
.pm-range input:focus-visible{ outline: 2px solid rgba(var(--primary-rgb),.7); outline-offset: 3px; border-radius: .4rem; }
.pm-steps button{ padding: .42rem .75rem; font-size: .72rem; }
.pm-days{ min-width: 7.5rem; text-align: right; color: var(--muted); font-weight: 700; white-space: nowrap; }
.pm-days b{ font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.45rem; color: var(--text); font-variant-numeric: tabular-nums; }

/* ── акаунт ── */
.who{ display: flex; align-items: center; gap: .9rem; }
.who img, .who .ava{ width: 3.2rem; height: 3.2rem; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: rgba(var(--primary-rgb),.2); color: var(--bright); font-weight: 900; font-size: 1.3rem; border: 1px solid rgba(var(--primary-rgb),.4); flex: none; }
.who b{ display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.15rem; }
.who > div{ min-width: 0; }

/* ── партнерка ── */
.stats{ display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .55rem; }
.stat{ padding: .75rem .9rem; display: grid; gap: .3rem; }
.stat b{ font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.pcode{ display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pcode b{ font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.5rem; letter-spacing: .06em; color: var(--bright); }
.adm-row{ display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .55rem .75rem; font-size: .8rem; }
.adm-row > span{ flex: 1 1 14rem; min-width: 0; }
.adm-row select{ height: 2rem; font-size: .78rem; }

.toast{ position: fixed; left: 50%; bottom: 1.6rem; transform: translate(-50%, .6rem); z-index: 50; padding: .7rem 1.2rem; border-radius: .7rem; opacity: 0; pointer-events: none;
  background: rgba(10,10,12,.95); border: 1px solid rgba(var(--primary-rgb),.5); color: var(--text); font-size: .88rem; transition: opacity .25s, transform .25s; box-shadow: 0 0 22px rgba(var(--primary-rgb),.2); }
.toast.show{ opacity: 1; transform: translate(-50%, 0); }
.toast.bad{ border-color: rgba(255,90,90,.6); }

/* ── адаптив ── */
@media (max-width: 900px){
  .shell{ grid-template-columns: minmax(0, 1fr); padding: .8rem; }
  .side{ position: static; height: auto; padding: .8rem; min-width: 0; gap: 0; }
  .side .divider, .side-foot .socials{ display: none; }
  .menu, .side-foot{ display: flex; flex-wrap: wrap; gap: .4rem; }
  .menu{ margin-top: .7rem; }
  .side-foot{ margin-top: .4rem; }
  .menu .menu-item, .side-foot .menu-item{ width: auto; flex: 0 1 auto; }
  .grid2{ grid-template-columns: 1fr; }
  .user-chip{ margin-left: 0; }
}
@media (max-width: 520px){ .topbar h1{ font-size: 1.3rem; } .menu .menu-item, .side-foot .menu-item{ padding: .5rem .7rem; font-size: .78rem; } .li{ grid-template-columns: 1fr auto; } .li > span:nth-child(2){ grid-column: 1 / -1; order: 3; } .tu-row .btn{ flex: 1 1 100%; } }

/* ── адмінка: розділи ── */
.seg{ display: flex; flex-wrap: wrap; gap: .4rem; }
.seg button{ padding: .5rem 1rem; border-radius: .6rem; border: 1px solid var(--line2); background: var(--inner); color: var(--muted); font: italic 900 .8rem var(--display); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.seg button:hover{ color: #fff; border-color: rgba(var(--primary-rgb),.55); }
.seg button.on{ color: #1a1306; background: linear-gradient(180deg, var(--bright), var(--primary)); border-color: transparent; }
.chips button.on{ color: #1a1306; background: var(--bright); border-color: transparent; }
.who.sm{ gap: .55rem; } .who.sm img, .who.sm .ava{ width: 1.8rem; height: 1.8rem; font-size: .8rem; }
.list a{ color: var(--bright); text-decoration: none; } .list a:hover{ text-decoration: underline; }

.steps.how{ margin: .2rem 0 .8rem; padding-left: 1.2rem; display: grid; gap: .45rem; }
.steps.how li{ font-size: .88rem; line-height: 1.5; color: rgba(255,255,255,.85); }
.steps.how b{ color: var(--bright); }

/* Royal RP 2026-11-12: адмінка — таблиці, соцмережі, лічильники */
.tbl-wrap{ overflow-x: auto; border-radius: .6rem; border: 1px solid var(--line); background: var(--inner); }
.tbl{ width: 100%; border-collapse: collapse; font-size: .8rem; }
.tbl th{ text-align: left; font-family: var(--display); font-weight: 700; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted2);
  padding: .65rem .7rem; background: rgba(var(--primary-rgb), .07); border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td{ padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td{ border-bottom: 0; }
.tbl tbody tr:hover td{ background: rgba(var(--primary-rgb), .04); }
.tbl tr.hov{ cursor: pointer; }
.tbl tr.hov:hover td{ background: rgba(var(--primary-rgb), .08); }
.tbl .num{ text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .nowrap, .nowrap{ white-space: nowrap; }
.tbl .acts{ white-space: nowrap; text-align: right; }
.tbl .acts .btn + .btn{ margin-left: .3rem; }
.tbl .about{ max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .pc{ font-family: var(--display); font-style: italic; font-weight: 900; letter-spacing: .05em; color: var(--bright); }
.tbl a{ text-decoration: none; }
.tbl a:hover{ text-decoration: underline; }
.input.sm{ height: 2rem; padding: 0 .5rem; font-size: .78rem; }
a.who.plain{ color: inherit; text-decoration: none; }
a.who.plain:hover b{ color: var(--bright); }
.who.sm b{ font-size: .85rem; } .who.sm > span{ display: grid; line-height: 1.2; }
.socs{ display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.soc{ display: inline-flex; align-items: center; padding: .16rem .5rem; border-radius: 1rem; font-size: .68rem; font-weight: 800; text-decoration: none !important;
  color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); white-space: nowrap; }
a.soc:hover{ filter: brightness(1.25); }
.soc-instagram{ background: linear-gradient(45deg, rgba(245,133,41,.35), rgba(221,42,123,.4), rgba(129,52,175,.4)); border-color: rgba(221,42,123,.55); }
.soc-tiktok{ background: rgba(37,244,238,.12); border-color: rgba(254,44,85,.55); }
.soc-youtube{ background: rgba(255,0,0,.2); border-color: rgba(255,60,60,.55); }
.soc-twitch{ background: rgba(145,70,255,.25); border-color: rgba(145,70,255,.6); }
.soc-telegram{ background: rgba(36,161,222,.22); border-color: rgba(36,161,222,.6); }
.soc-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .45rem; }
.soc-in{ display: flex; align-items: center; gap: .5rem; }
.soc-in .soc{ min-width: 5.6rem; justify-content: center; }
.soc-in .input{ flex: 1; }
.adm-seg button{ position: relative; }
.adm-badge{ display: none; margin-left: .4rem; min-width: 1.15rem; padding: 0 .3rem; border-radius: 1rem; font: 800 .62rem/1.15rem var(--font); font-style: normal;
  background: var(--bad); color: #fff; text-align: center; }
.adm-badge.on{ display: inline-block; }
.adm-stat{ text-align: left; font: inherit; color: inherit; cursor: default; }
.adm-stat.hov{ cursor: pointer; }
.adm-stat.warn{ border-color: rgba(var(--primary-rgb), .7); background: rgba(var(--primary-rgb), .1); }
.adm-stat.warn b{ color: var(--bright); }
.set-grid{ display: grid; gap: .6rem; }
.set{ display: grid; grid-template-columns: minmax(0, 1fr) 9rem; gap: .8rem; align-items: center; padding: .55rem .8rem; border-radius: .6rem; background: var(--inner); border: 1px solid var(--line); }
.set > span{ display: grid; gap: .15rem; font-size: .85rem; }
.set .input{ text-align: right; }
@media (max-width: 520px){ .set{ grid-template-columns: 1fr; } .soc-grid{ grid-template-columns: 1fr; } }
#adm, #adm > *{ min-width: 0; max-width: 100%; }
.tbl .socs{ flex-wrap: nowrap; }
.shell.wide{ max-width: 112rem; }
.tbl .app-cell{ max-width: 22rem; }
.tbl .app-cell span{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .15rem; white-space: normal; }
.tbl .socs{ flex-wrap: wrap; max-width: 15rem; }
