/* ══════════════════════════════════════
   PROFILE PAGE — pages/profile.css
   Block: Hero strip, tab nav, pcard, plan boxes, payments, sessions
   ══════════════════════════════════════ */

/* ── Hero strip ── */
.prof-hero-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-gradient-alt);
    border-radius: 18px;
    padding: 22px 28px;
    margin-bottom: 20px;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.prof-hero-strip::before {
    content: '';
    position: absolute;
    top: -40px; right: 40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(0,192,84,.4) 0%, transparent 70%);
    pointer-events: none;
}

.prof-hero-left  { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.prof-hero-right { position: relative; z-index: 1; }

.prof-ava {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,.25);
    box-shadow: 0 4px 16px rgba(0,192,84,.3);
}

.prof-ava--lg { width: 80px; height: 80px; font-size: 28px; margin: 0 auto; }

.prof-name  { font-family: 'Unbounded', sans-serif; font-size: 16px; font-weight: 700; color: #fff; }
.prof-email { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 3px; }

.prof-plan-chip {
    background: rgba(255,255,255,.2);
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(4px);
}

.prof-expiry {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0,0,0,.18);
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 12px 16px;
    backdrop-filter: blur(8px);
}

.prof-expiry-icon  { font-size: 20px; flex-shrink: 0; opacity: .85; }
.prof-expiry-text  { display: flex; flex-direction: column; gap: 2px; }

.prof-expiry-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255,255,255,.5);
}

.prof-expiry-date {
    font-size: 13px;
    font-weight: 600;
    color: #fcd34d;
    white-space: nowrap;
}

.prof-renew-btn {
    background: #fff;
    color: #1a6e3a;
    border: none;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.prof-renew-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }

/* ── Tab nav ── */
.prof-tab-nav {
    display: flex;
    gap: 2px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.prof-tab-nav-item {
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink3);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.prof-tab-nav-item:hover  { background: var(--bg); color: var(--ink2); }
.prof-tab-nav-item.active {
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,192,84,.25);
}

/* ── Audit tab special style ── */
.pnav-audit { font-weight: 600; }

.pnav-audit.active {
    background: var(--brand-gradient);
    color: #fff;
}

/* ── Tab panels ── */
.ptab        { display: none; animation: fadeUp .2s ease; }
.ptab.active { display: block; }

/* ── Two col layout ── */
.prof-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── pcard ── */
.pcard {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
}

.pcard:last-child { margin-bottom: 0; }

.pcard--danger { border-color: rgba(220,38,38,.2); }

.pcard-head {
    padding: 16px 22px;
    border-bottom: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pcard-title         { font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 700; }
.pcard-title--danger { color: var(--red); }
.pcard-subtitle      { font-size: 12px; color: var(--ink3); margin-top: 3px; }

/* Подпись «Моя подписка» / «Подписка команды» над .sub-compact-row — .pcard-head тут
   не подходит: в модерн-сайдбаре .pcard-sub-summary .pcard-head скрыт (см. ниже). */
.sub-owner-label { flex: 0 0 100%; font-size: 12px; color: var(--ink3); font-weight: 600; margin-bottom: 2px; }

.pcard-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pcard-body--centered  { align-items: center; text-align: center; gap: 16px; }
.pcard-body--gap-sm    { gap: 10px; }
.pcard-body--no-gap    { gap: 0; }
.pcard-body--no-padding { padding: 0; }

.pcard-hint { font-size: 12.5px; color: var(--ink3); line-height: 1.6; }

.pcard-col { display: flex; flex-direction: column; gap: 14px; }

/* ── Subscription stats ── */
.pstats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pstat-box {
    background: var(--bg);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}

.pstat-label { font-size: 11px; color: var(--ink3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.pstat-val   { font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 800; }

.pstat-val--gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pstat-val--danger { color: var(--red); }

/* ── Plans grid ── */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.plan-box {
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 20px 18px;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    background: var(--white);
}

.plan-box:hover        { border-color: var(--ink4); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.plan-box-current      { border-color: var(--accent); background: #f0fdf4; }

.plan-box-popular {
    position: absolute;
    top: -11px; left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-box-name  { font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 4px; }

.plan-box-price { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 800; margin: 10px 0 4px; }
.plan-box-price span { font-size: 12px; font-weight: 400; color: var(--ink3); font-family: 'Onest', sans-serif; }

.plan-box-desc { font-size: 12px; color: var(--ink3); margin-bottom: 14px; line-height: 1.5; }

.plan-box-features { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.pbf     { font-size: 12.5px; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
.pbf-off { color: var(--ink4); }

.plan-box-btn {
    width: 100%;
    padding: 9px;
    border-radius: 9px;
    border: 2px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: 'Onest', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}

.plan-box-btn:hover { background: var(--ink); color: #fff; }

.plan-box-current-label {
    width: 100%;
    padding: 9px;
    border-radius: 9px;
    text-align: center;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
}

/* ── Payment row ── */
.payment-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
}

.payment-row-icon { font-size: 22px; }
.payment-row-info { flex: 1; }
.payment-row-name { font-size: 13.5px; font-weight: 600; }
.payment-row-exp  { font-size: 12px; color: var(--ink3); }

/* ── Invoice table ── */
.inv-table { width: 100%; border-collapse: collapse; }

.inv-table th {
    padding: 11px 18px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--ink3);
    background: var(--bg);
    border-bottom: 1.5px solid var(--border);
}

.inv-table td           { padding: 13px 18px; font-size: 13px; border-bottom: 1px solid var(--border); color: var(--ink2); }
.inv-table tr:last-child td { border-bottom: none; }
.inv-table tr:hover td  { background: var(--bg); }

.inv-desc   { font-weight: 600; }
.inv-type   { font-size: 11px; color: var(--ink3); }
.inv-amount { font-weight: 600; }

.inv-dl { color: #1a7a40; font-weight: 600; cursor: pointer; font-size: 12px; }
.inv-dl:hover { text-decoration: underline; }

/* ── Site item ── */
.site-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: border-color .15s;
}

.site-item:hover       { border-color: var(--ink4); }
.site-item-active      { border-color: rgba(0,192,84,.3); background: #f0fdf4; }

.site-item-fav {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.site-item-fav--empty  { background: var(--border); color: var(--ink3); }
.site-item-info        { flex: 1; }
.site-item-name        { font-weight: 600; font-size: 13.5px; }
.site-item-name--muted { color: var(--ink3); font-weight: normal; }
.site-item-meta        { font-size: 12px; color: var(--ink3); margin-top: 2px; }

/* ── Session row ── */
.session-row    { display: flex; align-items: center; gap: 12px; }
.session-icon   { font-size: 22px; }
.session-info   { flex: 1; }
.session-device { font-weight: 600; font-size: 13px; }
.session-meta   { font-size: 11.5px; color: var(--ink3); }

/* ── Danger zone ── */
.danger-row      { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.danger-row-title { font-weight: 600; font-size: 13.5px; }
.danger-row-desc  { font-size: 12px; color: var(--ink3); margin-top: 3px; }

/* ══════════════════════════════════════
   MODERN PROFILE — test account only
   Visual layer only. Backend/API/forms remain untouched.
   ══════════════════════════════════════ */

body.sb-modern #page-profile {
    --profile-bg: #efefee;
    --profile-card: rgba(255,255,255,.78);
    --profile-card-solid: #fff;
    --profile-ink: #111217;
    --profile-muted: #8b92a0;
    --profile-line: rgba(17,18,23,.08);
    --profile-green: #a8e76a;
    --profile-green-soft: rgba(168,231,106,.24);
    --profile-black: #111217;
    background: var(--profile-bg);
    padding: 34px 32px 44px;
    min-height: 100vh;
}

body.sb-modern #page-profile .prof-hero-strip {
    background: var(--profile-card);
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 28px;
    box-shadow: none;
    padding: 16px;
    margin-bottom: 14px;
    overflow: visible;
    backdrop-filter: blur(18px);
}

body.sb-modern #page-profile .prof-hero-strip::before {
    display: none;
}

body.sb-modern #page-profile .prof-hero-left {
    gap: 12px;
}

body.sb-modern #page-profile .prof-ava {
    width: 52px;
    height: 52px;
    border-radius: 19px;
    background: var(--profile-green);
    border: 0;
    box-shadow: none;
    color: var(--profile-ink);
    font-size: 18px;
}

body.sb-modern #page-profile .prof-ava--img {
    object-fit: cover;
}

/* ── Overlay для загрузки аватара ── */
.profile-photo-stage { position: relative; }
.pacc-ava-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .18s;
    pointer-events: none;
}
.profile-photo-stage:hover .pacc-ava-overlay { opacity: 1; }
.prof-ava--img { object-fit: cover; }

body.sb-modern #page-profile .prof-ava--lg {
    width: 86px;
    height: 86px;
    border-radius: 28px;
    font-size: 28px;
}

body.sb-modern #page-profile .prof-name {
    color: var(--profile-ink);
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: 0;
}

body.sb-modern #page-profile .prof-email {
    color: var(--profile-muted);
    font-size: 13px;
    margin-top: 5px;
}

body.sb-modern #page-profile .prof-plan-chip,
body.sb-modern #page-profile .chip-gradient,
body.sb-modern #page-profile .chip-gold,
body.sb-modern #page-profile .chip-neutral {
    background: var(--profile-black);
    border: 0;
    border-radius: 999px;
    color: #fff;
    box-shadow: none;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

body.sb-modern #page-profile .prof-expiry {
    background: rgba(255,255,255,.74);
    border: 1px solid var(--profile-line);
    border-radius: 22px;
    padding: 10px 10px 10px 14px;
    box-shadow: none;
    backdrop-filter: blur(16px);
}

body.sb-modern #page-profile .prof-expiry-icon {
    display: none;
}

body.sb-modern #page-profile .prof-expiry-title {
    color: var(--profile-muted);
    letter-spacing: .08em;
}

body.sb-modern #page-profile .prof-expiry-date {
    color: var(--profile-ink);
    font-size: 13px;
    font-weight: 700;
}

body.sb-modern #page-profile .prof-renew-btn,
body.sb-modern #page-profile .btn-primary,
body.sb-modern #page-profile .plan-box-btn:hover {
    background: var(--profile-black);
    border-color: var(--profile-black);
    color: #fff;
    border-radius: 999px;
    box-shadow: none;
}

body.sb-modern #page-profile .prof-renew-btn:hover,
body.sb-modern #page-profile .btn-primary:hover {
    transform: translateY(-1px);
    filter: none;
    opacity: .9;
    box-shadow: none;
}

body.sb-modern #page-profile .prof-tab-nav {
    background: rgba(255,255,255,.64);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 999px;
    box-shadow: none;
    padding: 6px;
    gap: 4px;
    margin-bottom: 16px;
    backdrop-filter: blur(18px);
    width: fit-content;
    max-width: 100%;
}

body.sb-modern #page-profile .prof-tab-nav-item {
    border-radius: 999px;
    color: #5f6571;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 800;
}

body.sb-modern #page-profile .prof-tab-nav-item:hover {
    background: rgba(17,18,23,.05);
    color: var(--profile-ink);
}

body.sb-modern #page-profile .prof-tab-nav-item.active,
body.sb-modern #page-profile .pnav-audit.active {
    background: var(--profile-green);
    color: var(--profile-ink);
    box-shadow: none;
}

body.sb-modern #page-profile .ptab {
    animation: fadeUp .18s ease;
}

body.sb-modern #page-profile .prof-two-col {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
    gap: 16px;
}

body.sb-modern #page-profile .pcard {
    background: var(--profile-card);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 24px;
    box-shadow: none;
    margin-bottom: 16px;
    overflow: hidden;
    backdrop-filter: blur(18px);
}

body.sb-modern #page-profile .pcard--danger {
    border-color: rgba(239,68,68,.18);
}

body.sb-modern #page-profile .pcard-head {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--profile-line);
}

body.sb-modern #page-profile .pcard-title {
    color: var(--profile-ink);
    font-size: 16px;
    letter-spacing: 0;
}

body.sb-modern #page-profile .pcard-subtitle,
body.sb-modern #page-profile .pcard-hint {
    color: var(--profile-muted);
}

body.sb-modern #page-profile .pcard-body {
    padding: 18px 20px 20px;
    gap: 13px;
}

body.sb-modern #page-profile .pfield {
    gap: 7px;
}

body.sb-modern #page-profile .pfield label {
    color: #5f6571;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

body.sb-modern #page-profile .pinput {
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(17,18,23,.08);
    border-radius: 16px;
    color: var(--profile-ink);
    font-size: 14px;
    min-height: 47px;
    padding: 12px 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

body.sb-modern #page-profile .pinput:focus {
    border-color: rgba(168,231,106,.9);
    box-shadow: 0 0 0 4px rgba(168,231,106,.22);
}

body.sb-modern #page-profile .btn,
body.sb-modern #page-profile button {
    letter-spacing: 0;
}

body.sb-modern #page-profile .btn-sm {
    min-height: 38px;
    border-radius: 999px;
    padding-inline: 15px;
    font-weight: 800;
}

body.sb-modern #page-profile .btn-ghost {
    background: rgba(255,255,255,.76);
    border-color: transparent;
    color: #555b66;
    box-shadow: none;
}

body.sb-modern #page-profile .btn-ghost:hover {
    background: #fff;
    border-color: transparent;
    color: var(--profile-ink);
}

body.sb-modern #page-profile .pstats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body.sb-modern #page-profile .pstat-box {
    background: rgba(255,255,255,.72);
    border: 1px solid var(--profile-line);
    border-radius: 20px;
    padding: 16px 14px;
    text-align: left;
}

body.sb-modern #page-profile .pstat-label {
    color: var(--profile-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

body.sb-modern #page-profile .pstat-val {
    color: var(--profile-ink);
    font-size: 18px;
}

body.sb-modern #page-profile .pstat-val--gradient {
    background: none;
    -webkit-text-fill-color: currentColor;
}

body.sb-modern #page-profile .plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.sb-modern #page-profile .plan-box {
    background: rgba(255,255,255,.76);
    border: 1px solid var(--profile-line);
    border-radius: 24px;
    padding: 20px;
    box-shadow: none;
}

body.sb-modern #page-profile .plan-box:hover {
    border-color: rgba(17,18,23,.16);
    transform: translateY(-1px);
    box-shadow: none;
}

body.sb-modern #page-profile .plan-box-current {
    background: linear-gradient(180deg, var(--profile-green) 0%, #dff7c8 100%);
    border-color: transparent;
}

body.sb-modern #page-profile .plan-box-popular {
    background: var(--profile-black);
    border-radius: 999px;
    color: #fff;
    box-shadow: none;
    top: 12px;
    left: auto;
    right: 14px;
    transform: none;
}

body.sb-modern #page-profile .plan-box-name {
    color: var(--profile-ink);
    font-size: 16px;
}

body.sb-modern #page-profile .plan-box-price {
    color: var(--profile-ink);
    font-size: 28px;
}

body.sb-modern #page-profile .plan-box-desc,
body.sb-modern #page-profile .pbf-off {
    color: var(--profile-muted);
}

body.sb-modern #page-profile .pbf {
    color: #30343b;
    font-size: 13px;
}

body.sb-modern #page-profile .plan-box-btn {
    border: 0;
    background: rgba(17,18,23,.08);
    border-radius: 999px;
    color: var(--profile-ink);
    min-height: 42px;
}

body.sb-modern #page-profile .plan-box-current-label {
    background: var(--profile-black);
    border-radius: 999px;
    color: #fff;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.sb-modern #page-profile .plan-box-btn--disabled,
body.sb-modern #page-profile .plan-box-btn--disabled:hover {
    background: rgba(17,18,23,.04);
    color: #9299a6;
    cursor: not-allowed;
    font-size: 11.5px;
}

body.sb-modern #page-profile .payment-row,
body.sb-modern #page-profile .site-item {
    background: rgba(255,255,255,.76);
    border: 1px solid var(--profile-line);
    border-radius: 20px;
    padding: 13px 14px;
}

body.sb-modern #page-profile .payment-row:hover,
body.sb-modern #page-profile .site-item:hover {
    border-color: rgba(17,18,23,.16);
}

body.sb-modern #page-profile .site-item-active {
    background: linear-gradient(90deg, rgba(168,231,106,.25), rgba(255,255,255,.75));
    border-color: rgba(168,231,106,.55);
}

body.sb-modern #page-profile .site-item-fav {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--profile-green);
    color: var(--profile-ink);
    box-shadow: none;
}

body.sb-modern #page-profile .site-item-fav--empty {
    background: rgba(17,18,23,.08);
    color: #555b66;
}

body.sb-modern #page-profile .site-item-name,
body.sb-modern #page-profile .payment-row-name,
body.sb-modern #page-profile .session-device,
body.sb-modern #page-profile .danger-row-title {
    color: var(--profile-ink);
    font-weight: 800;
}

body.sb-modern #page-profile .site-item-meta,
body.sb-modern #page-profile .payment-row-exp,
body.sb-modern #page-profile .session-meta,
body.sb-modern #page-profile .danger-row-desc {
    color: var(--profile-muted);
}

body.sb-modern #page-profile .chip-green {
    background: var(--profile-green-soft);
    color: #2d641f;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
}

body.sb-modern #page-profile .chip-neutral,
body.sb-modern #page-profile .chip-neutral-sm {
    background: rgba(17,18,23,.07);
    border: 0;
    border-radius: 999px;
    color: #5f6571;
    font-weight: 800;
}

body.sb-modern #page-profile .toggle-row {
    border-bottom-color: var(--profile-line);
    padding: 15px 0;
}

body.sb-modern #page-profile .toggle-title {
    color: var(--profile-ink);
    font-weight: 900;
}

body.sb-modern #page-profile .toggle-desc {
    color: var(--profile-muted);
}

body.sb-modern #page-profile .toggle {
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: rgba(17,18,23,.14);
}

body.sb-modern #page-profile .toggle.on {
    background: var(--profile-green);
}

body.sb-modern #page-profile .toggle-knob {
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    box-shadow: none;
}

body.sb-modern #page-profile .toggle.on .toggle-knob {
    transform: translateX(20px);
}

body.sb-modern #page-profile .inv-table th {
    background: rgba(17,18,23,.04);
    border-bottom-color: var(--profile-line);
}

body.sb-modern #page-profile .inv-table td {
    border-bottom-color: var(--profile-line);
}

body.sb-modern #page-profile .inv-table tr:hover td {
    background: rgba(255,255,255,.52);
}

body.sb-modern #page-profile .audit-launch-block,
body.sb-modern #page-profile .audit-score-hero,
body.sb-modern #page-profile .audit-mode-bar,
body.sb-modern #page-profile .audit-list-item,
body.sb-modern #page-profile .audit-compare-selectors-wrap {
    background: rgba(255,255,255,.74);
    border: 1px solid var(--profile-line);
    border-radius: 22px;
    box-shadow: none;
}

body.sb-modern #page-profile .audit-site-domain,
body.sb-modern #page-profile .audit-big-score,
body.sb-modern #page-profile .audit-hero-date,
body.sb-modern #page-profile .audit-list-date {
    color: var(--profile-ink);
}

body.sb-modern #page-profile .audit-site-meta,
body.sb-modern #page-profile .audit-hero-sub,
body.sb-modern #page-profile .audit-selector-label,
body.sb-modern #page-profile .audit-select-hint {
    color: var(--profile-muted);
}

body.sb-modern #page-profile .audit-mode-btn {
    border-radius: 999px;
}

body.sb-modern #page-profile .audit-mode-btn.active {
    background: var(--profile-black);
    color: #fff;
}

body.sb-modern #page-profile .audit-selector {
    background: rgba(255,255,255,.82);
    border: 1px solid var(--profile-line);
    border-radius: 14px;
}

body.sb-modern #page-profile .pcard[style],
body.sb-modern #page-profile [id^="payment-"][style*="gradient"] {
    box-shadow: none !important;
}

body.sb-modern #modal-plan > div,
body.sb-modern #modal-delete-account > div {
    background: rgba(255,255,255,.94) !important;
    color: var(--profile-ink, #111217) !important;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 28px !important;
    box-shadow: 0 24px 70px rgba(17,18,23,.18) !important;
}

@media (max-width: 1180px) {
    body.sb-modern #page-profile {
        padding: 26px 22px 36px;
    }

    body.sb-modern #page-profile .prof-hero-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    body.sb-modern #page-profile .prof-hero-right,
    body.sb-modern #page-profile .prof-expiry {
        width: 100%;
    }

    body.sb-modern #page-profile .prof-expiry {
        justify-content: space-between;
    }

    body.sb-modern #page-profile .pstats-grid,
    body.sb-modern #page-profile .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    body.sb-modern #page-profile {
        padding: 20px 14px 32px;
    }

    body.sb-modern #page-profile .prof-two-col,
    body.sb-modern #page-profile .plans-grid,
    body.sb-modern #page-profile .pstats-grid {
        grid-template-columns: 1fr;
    }

    body.sb-modern #page-profile .prof-tab-nav {
        border-radius: 24px;
        width: 100%;
    }

    body.sb-modern #page-profile .prof-tab-nav-item {
        flex: 1 1 auto;
        text-align: center;
    }

    body.sb-modern #page-profile .site-item,
    body.sb-modern #page-profile .payment-row,
    body.sb-modern #page-profile .danger-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

/* ── Modern profile composition v2 ── */
body.sb-modern #page-profile {
    padding: 24px;
}

body.sb-modern #page-profile .prof-modern-canvas {
    max-width: 1520px;
    margin: 0 auto;
}

body.sb-modern #page-profile .prof-hero-strip {
    min-height: 184px;
    align-items: stretch;
    background:
        radial-gradient(circle at 18% 20%, rgba(168,231,106,.34), transparent 28%),
        linear-gradient(135deg, #101115 0%, #191b20 54%, #edf7e5 54.2%, #fff 100%);
    border: 0;
    border-radius: 32px;
    padding: 18px;
    margin-bottom: 12px;
    color: #fff;
}

body.sb-modern #page-profile .prof-hero-left {
    flex: 1;
    align-content: flex-start;
    align-items: center;
    padding: 8px 10px;
    max-width: 620px;
}

body.sb-modern #page-profile .prof-hero-left > div:not(.prof-ava) {
    min-width: 190px;
}

body.sb-modern #page-profile .prof-hero-right {
    width: min(520px, 44%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

body.sb-modern #page-profile .prof-hero-strip .prof-ava {
    width: 68px;
    height: 68px;
    border-radius: 24px;
    background: var(--profile-green);
    color: var(--profile-ink);
}

body.sb-modern #page-profile .prof-hero-strip .prof-name {
    color: #fff;
    font-size: 25px;
}

body.sb-modern #page-profile .prof-hero-strip .prof-email {
    color: rgba(255,255,255,.62);
    font-size: 14px;
}

body.sb-modern #page-profile .prof-hero-strip .prof-plan-chip {
    background: var(--profile-green);
    color: var(--profile-ink);
    padding: 12px 18px;
}

body.sb-modern #page-profile .prof-expiry {
    width: 100%;
    max-width: 480px;
    min-height: 96px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(17,18,23,.08);
    border-radius: 26px;
    padding: 14px 14px 14px 18px;
}

body.sb-modern #page-profile .prof-expiry-text {
    flex: 1;
}

body.sb-modern #page-profile .prof-expiry-title {
    color: #9299a6;
    font-size: 11px;
}

body.sb-modern #page-profile .prof-expiry-date {
    color: var(--profile-ink);
    font-size: 17px;
}

body.sb-modern #page-profile .prof-tab-nav {
    width: 100%;
    border-radius: 28px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 8px;
}

body.sb-modern #page-profile .prof-tab-nav-item {
    flex: 1 1 auto;
    text-align: center;
    padding: 13px 14px;
}

body.sb-modern #page-profile .prof-two-col {
    grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
    align-items: stretch;
}

body.sb-modern #page-profile #ptab-account .pcard-avatar-studio {
    order: -1;
    min-height: 520px;
    background:
        radial-gradient(circle at 78% 16%, rgba(168,231,106,.58), transparent 22%),
        linear-gradient(155deg, #111217 0%, #17191f 58%, #a8e76a 58.5%, #dff7c8 100%);
    color: #fff;
}

body.sb-modern #page-profile #ptab-account .pcard-avatar-studio .pcard-head {
    border-bottom-color: rgba(255,255,255,.12);
}

body.sb-modern #page-profile #ptab-account .pcard-avatar-studio .pcard-title {
    color: #fff;
}

body.sb-modern #page-profile #ptab-account .pcard-avatar-studio .pcard-subtitle,
body.sb-modern #page-profile #ptab-account .pcard-avatar-studio .pcard-hint {
    color: rgba(255,255,255,.62);
}

body.sb-modern #page-profile .profile-photo-stage {
    width: 100%;
    min-height: 240px;
    display: grid;
    place-items: center;
    position: relative;
}

body.sb-modern #page-profile .profile-photo-stage::before,
body.sb-modern #page-profile .profile-photo-stage::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
}

body.sb-modern #page-profile .profile-photo-stage::before {
    width: 184px;
    height: 184px;
}

body.sb-modern #page-profile .profile-photo-stage::after {
    width: 128px;
    height: 128px;
    background: rgba(255,255,255,.04);
}

body.sb-modern #page-profile .profile-photo-stage .prof-ava {
    position: relative;
    z-index: 1;
    width: 118px;
    height: 118px;
    border-radius: 34px;
    box-shadow: 0 18px 55px rgba(0,0,0,.24);
}

body.sb-modern #page-profile .profile-photo-badge {
    position: absolute;
    left: 22px;
    bottom: 18px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
}

body.sb-modern #page-profile .pcard-account-form {
    min-height: 520px;
}

body.sb-modern #page-profile .pcard-account-form .pcard-body {
    height: calc(100% - 75px);
}

body.sb-modern #page-profile .profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

body.sb-modern #page-profile .profile-form-grid .pfield:nth-child(3),
body.sb-modern #page-profile .profile-form-grid .pfield:nth-child(6) {
    grid-column: span 2;
}

body.sb-modern #page-profile .pcard-sub-summary {
    background:
        linear-gradient(135deg, rgba(168,231,106,.9), rgba(221,247,199,.84) 42%, rgba(255,255,255,.82) 42.3%),
        #fff;
}

body.sb-modern #page-profile .pcard-sub-summary .pstats-grid {
    grid-template-columns: 1.15fr 1fr 1fr .8fr;
}

body.sb-modern #page-profile .pcard-sub-summary .pstat-box {
    background: rgba(255,255,255,.68);
}

body.sb-modern #page-profile .pcard-sub-summary .pstat-val {
    font-size: 22px;
}

body.sb-modern #page-profile .pcard-plan-market .pcard-body {
    padding-top: 10px;
}

body.sb-modern #page-profile .pcard-plan-market .plans-grid {
    align-items: stretch;
}

body.sb-modern #page-profile .pcard-plan-market .plan-box {
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

body.sb-modern #page-profile .pcard-plan-market .plan-box-features {
    flex: 1;
}

body.sb-modern #page-profile .pcard-payment-wallet {
    overflow: visible;
}

body.sb-modern #page-profile .pcard-payment-wallet .pcard-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
}

body.sb-modern #page-profile .payment-add-card-tile {
    min-height: 164px;
    border: 1px dashed rgba(17,18,23,.22);
    border-radius: 26px;
    background: rgba(255,255,255,.58);
    color: var(--profile-ink);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px;
    cursor: pointer;
    text-align: left;
}

body.sb-modern #page-profile .payment-add-card-tile span {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--profile-green);
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
}

body.sb-modern #page-profile .payment-add-card-tile strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
}

body.sb-modern #page-profile .payment-add-card-tile small {
    color: var(--profile-muted);
    font-size: 12px;
    line-height: 1.35;
}

body.sb-modern #page-profile .payment-add-card-tile:hover {
    background: #fff;
    border-color: rgba(168,231,106,.95);
}

body.sb-modern #page-profile .pcard-payment-wallet .payment-row {
    min-height: 164px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    background:
        radial-gradient(circle at 85% 14%, rgba(168,231,106,.7), transparent 22%),
        linear-gradient(135deg, #111217, #22242b);
    border: 0;
    color: #fff;
    border-radius: 26px;
    padding: 18px;
}

body.sb-modern #page-profile .pcard-payment-wallet .payment-row-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
}

body.sb-modern #page-profile .pcard-payment-wallet .payment-row-info {
    width: 100%;
}

body.sb-modern #page-profile .pcard-payment-wallet .payment-row-name {
    color: #fff;
    font-size: 17px;
}

body.sb-modern #page-profile .pcard-payment-wallet .payment-row-exp {
    color: rgba(255,255,255,.58);
}

body.sb-modern #page-profile .pcard-payment-wallet .payment-row .btn-ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
}

body.sb-modern #page-profile .pcard-payment-wallet .payment-row .chip-green {
    background: var(--profile-green);
    color: var(--profile-ink);
}

body.sb-modern #page-profile .pcard-payment-wallet .pcard-hint {
    align-self: center;
    padding: 18px;
}

body.sb-modern #page-profile #ptab-sites .pcard,
body.sb-modern #page-profile #ptab-notify .pcard,
body.sb-modern #page-profile #ptab-security .pcard,
body.sb-modern #page-profile #ptab-invoices .pcard {
    border-radius: 28px;
}

body.sb-modern #page-profile #ptab-sites .site-item {
    min-height: 76px;
}

body.sb-modern #page-profile #ptab-notify .toggle-row {
    background: rgba(255,255,255,.52);
    border: 1px solid var(--profile-line);
    border-radius: 22px;
    padding: 15px 16px;
    margin-bottom: 10px;
}

body.sb-modern #page-profile #ptab-notify .toggle-row--last {
    margin-bottom: 0;
}

@media (max-width: 1180px) {
    body.sb-modern #page-profile .prof-hero-strip {
        background: linear-gradient(145deg, #111217 0%, #1a1c21 64%, #dff7c8 64.5%, #fff 100%);
    }

    body.sb-modern #page-profile .prof-hero-right {
        width: 100%;
    }

    body.sb-modern #page-profile .prof-two-col {
        grid-template-columns: 1fr;
    }

    body.sb-modern #page-profile #ptab-account .pcard-avatar-studio,
    body.sb-modern #page-profile .pcard-account-form {
        min-height: 0;
    }

    body.sb-modern #page-profile .pcard-sub-summary .pstats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body.sb-modern #page-profile {
        padding: 14px;
    }

    body.sb-modern #page-profile .prof-hero-strip {
        min-height: 0;
        border-radius: 28px;
        background: #111217;
    }

    body.sb-modern #page-profile .prof-hero-strip .prof-name {
        font-size: 20px;
    }

    body.sb-modern #page-profile .prof-tab-nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    body.sb-modern #page-profile .prof-tab-nav-item {
        flex: 0 0 auto;
    }

    body.sb-modern #page-profile .profile-form-grid,
    body.sb-modern #page-profile .pcard-sub-summary .pstats-grid {
        grid-template-columns: 1fr;
    }

    body.sb-modern #page-profile .profile-form-grid .pfield:nth-child(3),
    body.sb-modern #page-profile .profile-form-grid .pfield:nth-child(6) {
        grid-column: auto;
    }
}

/* ── Modern profile composition v4: command center layout ── */
body.sb-modern #page-profile {
    background: #eeeeed;
    padding: 22px;
}

body.sb-modern #page-profile .prof-modern-canvas {
    max-width: 1600px;
}

body.sb-modern #page-profile .prof-command-center {
    display: grid;
    grid-template-columns: 82px minmax(280px, .9fr) minmax(540px, 1.55fr);
    gap: 14px;
    align-items: stretch;
    margin-bottom: 14px;
}

body.sb-modern #page-profile .prof-back-btn {
    width: 82px;
    min-height: 112px;
    border: 0;
    border-radius: 30px;
    background: #fff;
    color: #111217;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.04);
    transition: transform .18s ease, background .18s ease;
}

body.sb-modern #page-profile .prof-back-btn:hover {
    background: #f8f8f7;
    transform: translateX(-2px);
}

body.sb-modern #page-profile .prof-identity-card {
    min-height: 112px;
    border-radius: 30px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.04);
}

body.sb-modern #page-profile .prof-identity-avatar {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    background: var(--profile-green);
    color: #111217;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 900;
}

body.sb-modern #page-profile .prof-identity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.sb-modern #page-profile .prof-identity-copy {
    min-width: 0;
}

body.sb-modern #page-profile .prof-kicker {
    margin-bottom: 5px;
    color: #8e95a2;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.sb-modern #page-profile .prof-identity-copy h1 {
    margin: 0;
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(19px, 2vw, 28px);
    line-height: 1.08;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern #page-profile .prof-identity-copy p {
    margin: 6px 0 0;
    color: #8e95a2;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern #page-profile .prof-status-rail {
    min-height: 112px;
    border-radius: 30px;
    background: #fff;
    display: grid;
    grid-template-columns: 1.2fr 1.1fr .86fr auto;
    gap: 10px;
    align-items: stretch;
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.04);
}

body.sb-modern #page-profile .prof-status-card,
body.sb-modern #page-profile .prof-status-action {
    border: 0;
    border-radius: 24px;
}

body.sb-modern #page-profile .prof-status-card {
    background: #f4f4f3;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

body.sb-modern #page-profile .prof-status-card span {
    color: #8e95a2;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.sb-modern #page-profile .prof-status-card strong {
    margin-top: 8px;
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern #page-profile .prof-status-card small {
    margin-top: 6px;
    color: #8e95a2;
    font-size: 12px;
}

body.sb-modern #page-profile .prof-status-card--dark {
    background:
        radial-gradient(circle at 78% 0%, rgba(168,231,106,.26), transparent 32%),
        #111217;
}

body.sb-modern #page-profile .prof-status-card--dark span,
body.sb-modern #page-profile .prof-status-card--dark small {
    color: rgba(255,255,255,.6);
}

body.sb-modern #page-profile .prof-status-card--dark strong {
    color: #fff;
}

body.sb-modern #page-profile .prof-status-card--green {
    background: var(--profile-green);
}

body.sb-modern #page-profile .prof-status-card--green span,
body.sb-modern #page-profile .prof-status-card--green small {
    color: rgba(17,18,23,.62);
}

body.sb-modern #page-profile .prof-status-action {
    min-width: 122px;
    padding: 0 22px;
    background: #111217;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease;
}

body.sb-modern #page-profile .prof-status-action:hover {
    opacity: .9;
    transform: translateY(-1px);
}

body.sb-modern #page-profile .prof-tab-nav {
    min-height: 64px;
    border-radius: 32px;
    background: #fff;
    border: 0;
    padding: 8px;
    gap: 6px;
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.04);
}

body.sb-modern #page-profile .prof-tab-nav-item {
    color: #666d79;
    font-size: 13px;
    font-weight: 900;
    border-radius: 24px;
}

body.sb-modern #page-profile .prof-tab-nav-item.active,
body.sb-modern #page-profile .pnav-audit.active {
    background: #111217;
    color: #fff;
}

body.sb-modern #page-profile .prof-tab-nav-item:hover {
    background: #f4f4f3;
}

body.sb-modern #page-profile .prof-tab-nav-item.active:hover {
    background: #111217;
}

body.sb-modern #page-profile .ptab.active {
    display: block;
}

body.sb-modern #page-profile .prof-two-col {
    grid-template-columns: minmax(330px, 430px) minmax(0, 1fr);
    gap: 16px;
}

body.sb-modern #page-profile .pcard {
    border-radius: 30px;
    background: #fff;
    border: 0;
    backdrop-filter: none;
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.04);
}

body.sb-modern #page-profile .pcard-head {
    min-height: 78px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(17,18,23,.07);
}

body.sb-modern #page-profile .pcard-title {
    font-size: 20px;
}

body.sb-modern #page-profile .pcard-body {
    padding: 22px 24px 24px;
}

body.sb-modern #page-profile #ptab-account .pcard-avatar-studio {
    min-height: 0;
    background:
        radial-gradient(circle at 72% 24%, rgba(168,231,106,.28), transparent 28%),
        linear-gradient(180deg, #111217 0%, #17191f 100%);
}

body.sb-modern #page-profile #ptab-account .pcard-avatar-studio::after {
    display: none;
}

body.sb-modern #page-profile .profile-photo-stage {
    min-height: 250px;
}

body.sb-modern #page-profile .profile-photo-stage .prof-ava {
    width: 118px;
    height: 118px;
}

body.sb-modern #page-profile .profile-photo-stage::before {
    width: 190px;
    height: 190px;
}

body.sb-modern #page-profile .profile-photo-stage::after {
    width: 132px;
    height: 132px;
}

body.sb-modern #page-profile .pcard-avatar-studio .btn-ghost {
    background: rgba(255,255,255,.9);
    color: #111217;
}

body.sb-modern #page-profile .pcard-account-form {
    min-height: 0;
}

body.sb-modern #page-profile .profile-form-grid {
    gap: 20px 18px;
}

body.sb-modern #page-profile .pinput {
    min-height: 54px;
    border-radius: 19px;
    background: #fff;
}

body.sb-modern #page-profile .pcard-sub-summary {
    background: #fff;
}

body.sb-modern #page-profile .pcard-sub-summary .pstats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.sb-modern #page-profile .pcard-sub-summary .pstat-box {
    border-radius: 24px;
}

body.sb-modern #page-profile .pcard-sub-summary .pstat-box:first-child {
    background: #111217;
}

body.sb-modern #page-profile .pcard-sub-summary .pstat-box:first-child .pstat-label {
    color: rgba(255,255,255,.56);
}

body.sb-modern #page-profile .pcard-sub-summary .pstat-box:first-child .pstat-val {
    color: #fff;
}

@media (max-width: 1280px) {
    body.sb-modern #page-profile .prof-command-center {
        grid-template-columns: 76px 1fr;
    }

    body.sb-modern #page-profile .prof-status-rail {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    body.sb-modern #page-profile .prof-command-center,
    body.sb-modern #page-profile .prof-two-col {
        grid-template-columns: 1fr;
    }

    body.sb-modern #page-profile .prof-back-btn {
        width: 100%;
        min-height: 64px;
    }

    body.sb-modern #page-profile .prof-status-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.sb-modern #page-profile .prof-status-action {
        min-height: 64px;
    }

    body.sb-modern #page-profile .pcard-sub-summary .pstats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    body.sb-modern #page-profile {
        padding: 12px;
    }

    body.sb-modern #page-profile .prof-status-rail,
    body.sb-modern #page-profile .profile-form-grid,
    body.sb-modern #page-profile .pcard-sub-summary .pstats-grid {
        grid-template-columns: 1fr;
    }

    body.sb-modern #page-profile .prof-identity-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ── Modern profile composition v3: no diagonal panels, compact UX ── */
body.sb-modern #page-profile .prof-hero-strip {
    min-height: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 28px;
    padding: 12px 14px;
    color: var(--profile-ink);
}

body.sb-modern #page-profile .prof-hero-left {
    max-width: none;
    padding: 0;
    gap: 12px;
}

body.sb-modern #page-profile .prof-hero-left > div:not(.prof-ava) {
    min-width: 0;
}

body.sb-modern #page-profile .prof-hero-right {
    width: 100%;
}

body.sb-modern #page-profile .prof-hero-strip .prof-ava {
    width: 56px;
    height: 56px;
    border-radius: 20px;
}

body.sb-modern #page-profile .prof-hero-strip .prof-name {
    color: var(--profile-ink);
    font-size: 20px;
}

body.sb-modern #page-profile .prof-hero-strip .prof-email {
    color: var(--profile-muted);
    font-size: 13px;
}

body.sb-modern #page-profile .prof-hero-strip .prof-plan-chip {
    background: var(--profile-black);
    color: #fff;
    padding: 10px 14px;
}

body.sb-modern #page-profile .prof-expiry {
    max-width: none;
    min-height: 66px;
    border-radius: 24px;
    background: #fff;
    padding: 10px 10px 10px 16px;
}

body.sb-modern #page-profile .prof-expiry-date {
    font-size: 15px;
}

body.sb-modern #page-profile .prof-renew-btn {
    min-height: 44px;
    padding-inline: 20px;
}

body.sb-modern #page-profile .prof-tab-nav {
    min-height: 58px;
    margin-bottom: 16px;
    background: rgba(255,255,255,.72);
    border-radius: 28px;
    padding: 7px;
}

body.sb-modern #page-profile .prof-tab-nav-item {
    padding: 11px 12px;
}

body.sb-modern #page-profile #ptab-account .pcard-avatar-studio {
    min-height: 430px;
    position: relative;
    background:
        radial-gradient(circle at 70% 18%, rgba(168,231,106,.22), transparent 30%),
        linear-gradient(180deg, #121318 0%, #191b20 100%);
}

body.sb-modern #page-profile #ptab-account .pcard-avatar-studio::after {
    content: '';
    position: absolute;
    inset: auto 18px 18px 18px;
    height: 108px;
    border-radius: 26px;
    background: rgba(168,231,106,.92);
    pointer-events: none;
}

body.sb-modern #page-profile #ptab-account .pcard-avatar-studio .pcard-body {
    position: relative;
    z-index: 1;
}

body.sb-modern #page-profile .profile-photo-stage {
    min-height: 190px;
}

body.sb-modern #page-profile .profile-photo-stage::before {
    width: 158px;
    height: 158px;
    border-color: rgba(255,255,255,.12);
}

body.sb-modern #page-profile .profile-photo-stage::after {
    width: 112px;
    height: 112px;
}

body.sb-modern #page-profile .profile-photo-stage .prof-ava {
    width: 96px;
    height: 96px;
    border-radius: 30px;
}

body.sb-modern #page-profile .profile-photo-badge {
    background: rgba(255,255,255,.14);
}

body.sb-modern #page-profile .pcard-account-form {
    min-height: 430px;
}

body.sb-modern #page-profile .pcard-account-form .pcard-body {
    height: auto;
}

body.sb-modern #page-profile .pcard-sub-summary {
    background: rgba(255,255,255,.78);
}

body.sb-modern #page-profile .pcard-sub-summary .pstat-box:first-child {
    background: var(--profile-green);
}

body.sb-modern #page-profile .pcard-payment-wallet .payment-row {
    background:
        radial-gradient(circle at 82% 18%, rgba(168,231,106,.24), transparent 32%),
        linear-gradient(180deg, #121318 0%, #1c1e24 100%);
}

@media (max-width: 1180px) {
    body.sb-modern #page-profile .prof-hero-strip {
        grid-template-columns: 1fr;
        background: rgba(255,255,255,.82);
    }
}

@media (max-width: 760px) {
    body.sb-modern #page-profile .prof-hero-strip {
        background: rgba(255,255,255,.82);
        border-radius: 24px;
    }

    body.sb-modern #page-profile .prof-hero-strip .prof-name {
        font-size: 18px;
    }

    body.sb-modern #page-profile .prof-hero-strip .prof-plan-chip {
        width: 100%;
        text-align: center;
    }

    body.sb-modern #page-profile .prof-expiry {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ══════════════════════════════════════════════════════════
   MODERN PROFILE v5 — dark identity card + refined UX
   ══════════════════════════════════════════════════════════ */

/* Dark premium identity card */
body.sb-modern #page-profile .prof-identity-card {
    background:
        radial-gradient(ellipse at 88% 52%, rgba(168,231,106,.22) 0%, transparent 44%),
        #111217;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.06),
        0 12px 36px rgba(17,18,23,.1);
}

body.sb-modern #page-profile .prof-identity-avatar {
    background: #a8e76a;
    color: #111217;
    font-weight: 900;
}

body.sb-modern #page-profile .prof-identity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.sb-modern #page-profile .prof-kicker {
    color: #a8e76a;
    font-size: 10px;
    letter-spacing: .14em;
}

body.sb-modern #page-profile .prof-identity-copy h1 {
    color: #fff;
    letter-spacing: -.01em;
}

body.sb-modern #page-profile .prof-identity-copy p {
    color: rgba(255,255,255,.42);
}

/* Back button */
body.sb-modern #page-profile .prof-back-btn {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -.5px;
    color: #111217;
}

/* Status rail */
body.sb-modern #page-profile .prof-status-card strong {
    font-size: 16px;
    font-family: 'Unbounded', sans-serif;
    letter-spacing: -.01em;
}

/* Tab nav — consistent active */
body.sb-modern #page-profile .prof-tab-nav {
    background: #fff;
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.05);
}

body.sb-modern #page-profile .prof-tab-nav-item.active,
body.sb-modern #page-profile .pnav-audit.active {
    background: #111217;
    color: #fff;
    box-shadow: none;
}

body.sb-modern #page-profile .prof-tab-nav-item:hover {
    background: #f4f4f3;
    color: #111217;
}

body.sb-modern #page-profile .prof-tab-nav-item.active:hover,
body.sb-modern #page-profile .pnav-audit.active:hover {
    background: #111217;
}

/* pcard — cleaner look */
body.sb-modern #page-profile .pcard {
    background: #fff;
    border: 0;
    backdrop-filter: none;
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.05);
}

body.sb-modern #page-profile .pcard-head {
    padding: 22px 26px 18px;
    border-bottom-color: rgba(17,18,23,.07);
}

body.sb-modern #page-profile .pcard-title {
    font-size: 18px;
    letter-spacing: -.01em;
    color: #111217;
}

body.sb-modern #page-profile .pcard-body {
    padding: 22px 26px 26px;
}

/* Form inputs */
body.sb-modern #page-profile .pinput {
    background: #f7f7f6;
    border: 1px solid rgba(17,18,23,.08);
    border-radius: 18px;
    color: #111217;
    min-height: 52px;
    padding: 14px 16px;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}

body.sb-modern #page-profile .pinput:focus {
    background: #fff;
    border-color: rgba(168,231,106,.9);
    box-shadow: 0 0 0 4px rgba(168,231,106,.2);
    outline: none;
}

/* Buttons */
body.sb-modern #page-profile .btn-primary {
    background: #111217;
    border-color: #111217;
    color: #fff;
    border-radius: 999px;
    font-weight: 900;
}

body.sb-modern #page-profile .btn-primary:hover {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: none;
}

body.sb-modern #page-profile .btn-sm {
    min-height: 40px;
    border-radius: 999px;
    font-weight: 800;
    padding-inline: 18px;
}

body.sb-modern #page-profile .btn-ghost {
    background: #f4f4f3;
    border-color: transparent;
    color: #555b66;
    font-weight: 700;
}

body.sb-modern #page-profile .btn-ghost:hover {
    background: #ebebea;
    border-color: transparent;
    color: #111217;
}

/* Subscription: first stat box = dark */
body.sb-modern #page-profile .pcard-sub-summary .pstat-box:first-child {
    background: #111217;
}

body.sb-modern #page-profile .pcard-sub-summary .pstat-box:first-child .pstat-label {
    color: rgba(255,255,255,.48);
}

body.sb-modern #page-profile .pcard-sub-summary .pstat-box:first-child .pstat-val {
    color: #a8e76a;
    -webkit-text-fill-color: unset;
    background: none;
}

body.sb-modern #page-profile .pstat-box {
    background: #f7f7f6;
    border-radius: 22px;
    border: 0;
}

body.sb-modern #page-profile .pstat-label {
    color: #8e95a2;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
}

body.sb-modern #page-profile .pstat-val {
    color: #111217;
    font-size: 20px;
}

/* Plan boxes */
body.sb-modern #page-profile .plan-box {
    background: #f7f7f6;
    border: 0;
    border-radius: 26px;
    box-shadow: none;
}

body.sb-modern #page-profile .plan-box:hover {
    background: #f1f1f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(17,18,23,.08);
    border: 0;
}

body.sb-modern #page-profile .plan-box-current {
    background: #a8e76a;
    border: 0;
    pointer-events: none;
}

body.sb-modern #page-profile .plan-box-current .plan-box-name,
body.sb-modern #page-profile .plan-box-current .plan-box-price {
    color: #111217;
}

body.sb-modern #page-profile .plan-box-current .plan-box-desc,
body.sb-modern #page-profile .plan-box-current .pbf {
    color: rgba(17,18,23,.75);
}

body.sb-modern #page-profile .plan-box-current .pbf-off {
    color: rgba(17,18,23,.35);
}

body.sb-modern #page-profile .plan-box-popular {
    background: #111217;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    padding: 5px 12px;
    top: 14px;
    right: 14px;
    left: auto;
    transform: none;
    box-shadow: none;
}

body.sb-modern #page-profile .plan-box-btn {
    background: rgba(17,18,23,.08);
    border: 0;
    border-radius: 999px;
    color: #111217;
    font-weight: 800;
    min-height: 44px;
    transition: background .15s;
}

body.sb-modern #page-profile .plan-box-btn:hover {
    background: #111217;
    color: #fff;
}

body.sb-modern #page-profile .plan-box-current-label {
    background: rgba(17,18,23,.12);
    color: #111217;
    border-radius: 999px;
    min-height: 44px;
    font-weight: 900;
    border: 0;
}

/* Payment wallet card */
body.sb-modern #page-profile .pcard-payment-wallet .payment-row {
    background:
        radial-gradient(ellipse at 82% 16%, rgba(168,231,106,.22), transparent 36%),
        #111217;
    border: 0;
    border-radius: 26px;
    color: #fff;
    min-height: 152px;
}

body.sb-modern #page-profile .pcard-payment-wallet .payment-row-name {
    color: #fff;
    font-size: 16px;
}

body.sb-modern #page-profile .pcard-payment-wallet .payment-row-exp {
    color: rgba(255,255,255,.52);
}

body.sb-modern #page-profile .pcard-payment-wallet .payment-row .btn-ghost {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 0;
}

body.sb-modern #page-profile .pcard-payment-wallet .payment-row .btn-ghost:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
}

body.sb-modern #page-profile .pcard-payment-wallet .payment-row .chip-green {
    background: #a8e76a;
    color: #111217;
    border: 0;
    font-weight: 900;
}

body.sb-modern #page-profile .payment-add-card-tile {
    background: #f7f7f6;
    border: 1.5px dashed rgba(17,18,23,.18);
    border-radius: 26px;
    min-height: 152px;
    transition: background .15s, border-color .15s;
}

body.sb-modern #page-profile .payment-add-card-tile:hover {
    background: #f0f0ee;
    border-color: rgba(168,231,106,.8);
}

body.sb-modern #page-profile .payment-add-card-tile span {
    background: #a8e76a;
    color: #111217;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 26px;
    font-weight: 400;
}

body.sb-modern #page-profile .payment-add-card-tile strong {
    color: #111217;
    font-size: 15px;
}

body.sb-modern #page-profile .payment-add-card-tile small {
    color: #8e95a2;
}

/* Site items */
body.sb-modern #page-profile .site-item {
    background: #f7f7f6;
    border: 0;
    border-radius: 22px;
    min-height: 74px;
    box-shadow: none;
}

body.sb-modern #page-profile .site-item:hover {
    background: #f1f1f0;
}

body.sb-modern #page-profile .site-item-active {
    background: rgba(168,231,106,.18);
    border: 1.5px solid rgba(168,231,106,.5);
}

body.sb-modern #page-profile .site-item-active:hover {
    background: rgba(168,231,106,.24);
}

body.sb-modern #page-profile .site-item-fav {
    background: #a8e76a;
    color: #111217;
    border-radius: 16px;
    width: 44px;
    height: 44px;
    font-weight: 900;
    box-shadow: none;
}

body.sb-modern #page-profile .site-item-fav--empty {
    background: rgba(17,18,23,.07);
    color: #8e95a2;
}

body.sb-modern #page-profile #ptab-sites .site-item:not(.site-item-active) {
    border: 1.5px dashed rgba(17,18,23,.14);
    background: transparent;
}

/* Notification toggles */
body.sb-modern #page-profile #ptab-notify .toggle-row {
    background: #f7f7f6;
    border: 0;
    border-radius: 22px;
    padding: 16px 18px;
    margin-bottom: 10px;
}

body.sb-modern #page-profile .toggle {
    background: rgba(17,18,23,.14);
}

body.sb-modern #page-profile .toggle.on {
    background: #a8e76a;
}

body.sb-modern #page-profile .toggle-knob {
    box-shadow: none;
}

/* Invoices table */
body.sb-modern #page-profile .inv-table th {
    background: #f7f7f6;
    color: #8e95a2;
    font-size: 10px;
    letter-spacing: .09em;
    border-bottom-color: rgba(17,18,23,.07);
}

body.sb-modern #page-profile .inv-table td {
    border-bottom-color: rgba(17,18,23,.06);
    color: #111217;
}

body.sb-modern #page-profile .inv-table tr:hover td {
    background: #f9f9f8;
}

body.sb-modern #page-profile .inv-dl {
    color: #2d641f;
    font-weight: 800;
}

/* Security / danger zone */
body.sb-modern #page-profile .pcard--danger {
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(239,68,68,.18);
}

body.sb-modern #page-profile .pcard-title--danger {
    color: #dc2626;
}

/* Session rows */
body.sb-modern #page-profile .session-row {
    background: #f7f7f6;
    border-radius: 20px;
    padding: 14px 16px;
}

/* Payment modals */
body.sb-modern #modal-plan > div,
body.sb-modern #modal-cancel > div,
body.sb-modern #modal-delete-account > div {
    background: #fff !important;
    color: #111217 !important;
    border-radius: 30px !important;
    border: 1px solid rgba(17,18,23,.06) !important;
    box-shadow: 0 32px 80px rgba(17,18,23,.22) !important;
    padding: 32px !important;
}

/* Payment banners */
body.sb-modern #payment-ok-banner {
    background: #a8e76a !important;
    color: #111217 !important;
    border-radius: 26px !important;
    box-shadow: none !important;
}

body.sb-modern #payment-result-banner {
    background: #f4f4f3 !important;
    color: #111217 !important;
    border-radius: 26px !important;
    box-shadow: none !important;
}

/* Chips */
body.sb-modern #page-profile .chip-green {
    background: rgba(168,231,106,.28);
    color: #2d5c1a;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
}

body.sb-modern #page-profile .chip-neutral,
body.sb-modern #page-profile .chip-neutral-sm {
    background: rgba(17,18,23,.07);
    color: #555b66;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
}

body.sb-modern #page-profile .chip-orange {
    background: rgba(234,88,12,.12);
    color: #c2560a;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

body.sb-modern #page-profile .chip-red {
    background: rgba(220,38,38,.1);
    color: #dc2626;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
}

/* Audit tab */
body.sb-modern #page-profile .audit-launch-block,
body.sb-modern #page-profile .audit-score-hero,
body.sb-modern #page-profile .audit-mode-bar,
body.sb-modern #page-profile .audit-list-item,
body.sb-modern #page-profile .audit-compare-selectors-wrap {
    background: #f7f7f6;
    border: 0;
    border-radius: 24px;
    box-shadow: none;
}

body.sb-modern #page-profile .audit-mode-btn.active {
    background: #111217;
    color: #fff;
}

body.sb-modern #page-profile .audit-selector {
    background: #f7f7f6;
    border: 1px solid rgba(17,18,23,.08);
    border-radius: 14px;
}

/* General text colors */
body.sb-modern #page-profile .pcard-subtitle,
body.sb-modern #page-profile .pcard-hint {
    color: #8e95a2;
}

body.sb-modern #page-profile .pfield label {
    color: #8e95a2;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.sb-modern #page-profile .danger-row-title {
    color: #111217;
    font-weight: 800;
}

body.sb-modern #page-profile .danger-row-desc {
    color: #8e95a2;
}

/* ══════════════════════════════════════════════════════════
   MODERN PROFILE v6 — compact layout, no giant cards
   ══════════════════════════════════════════════════════════ */

/* Reduce command center height */
body.sb-modern #page-profile .prof-back-btn {
    min-height: 88px;
    font-size: 24px;
}

body.sb-modern #page-profile .prof-identity-card {
    min-height: 88px;
}

body.sb-modern #page-profile .prof-status-rail {
    min-height: 88px;
    padding: 10px;
}

body.sb-modern #page-profile .prof-status-card {
    padding: 10px 14px;
}

body.sb-modern #page-profile .prof-status-card span {
    font-size: 9px;
}

body.sb-modern #page-profile .prof-status-card strong {
    font-size: 15px;
    margin-top: 6px;
}

body.sb-modern #page-profile .prof-status-card small {
    font-size: 11px;
    margin-top: 4px;
}

body.sb-modern #page-profile .prof-status-action {
    min-width: 108px;
    font-size: 13px;
}

/* Tab nav — compact */
body.sb-modern #page-profile .prof-tab-nav {
    min-height: 52px;
    padding: 6px;
    gap: 4px;
    margin-bottom: 14px;
}

body.sb-modern #page-profile .prof-tab-nav-item {
    padding: 10px 14px;
    font-size: 12.5px;
    border-radius: 20px;
}

/* Content max-width — no restriction in prx layout */

/* ── Account tab: single compact card ── */
body.sb-modern #page-profile .pacc-card {
    margin-bottom: 0;
}

body.sb-modern #page-profile .pacc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    min-height: 0;
    border-bottom: 1px solid rgba(17,18,23,.07);
}

body.sb-modern #page-profile .pacc-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

body.sb-modern #page-profile .pacc-avatar {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: #a8e76a;
    color: #111217;
    display: grid;
    place-items: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 900;
    overflow: hidden;
    flex-shrink: 0;
}

body.sb-modern #page-profile .pacc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.sb-modern #page-profile .pacc-identity-text {
    flex: 1;
    min-width: 0;
}

body.sb-modern #page-profile .pacc-fullname {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #111217;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern #page-profile .pacc-mail {
    font-size: 12.5px;
    color: #8e95a2;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern #page-profile .pacc-photo-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f4f4f3;
    color: #555b66;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0;
    font-family: 'Onest', sans-serif;
}

body.sb-modern #page-profile .pacc-photo-btn:hover {
    background: #ebebea;
    color: #111217;
}

/* Account form grid */
body.sb-modern #page-profile .pacc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

body.sb-modern #page-profile .pacc-field-full {
    grid-column: span 2;
}

/* Override pcard-body to not use old profile-form-grid sizing */
body.sb-modern #page-profile #ptab-account .pcard-body {
    padding: 22px 22px 24px;
}

/* Compact pinput for account form */
body.sb-modern #page-profile #ptab-account .pinput {
    min-height: 46px;
    border-radius: 16px;
    font-size: 14px;
    padding: 12px 14px;
}

/* Override old two-col heavy layout for account tab */
body.sb-modern #page-profile #ptab-account .pcard-avatar-studio,
body.sb-modern #page-profile #ptab-account .pcard-account-form.pcard-account-form {
    display: none !important;
}

/* ── Subscription tab: compact stats ── */
body.sb-modern #page-profile .pcard-sub-summary .pstats-grid {
    gap: 10px;
}

body.sb-modern #page-profile .pcard-sub-summary .pstat-box {
    padding: 14px 14px;
}

body.sb-modern #page-profile .pcard-sub-summary .pstat-val {
    font-size: 18px;
    margin-top: 8px;
}

/* Plan cards — more compact */
body.sb-modern #page-profile .plan-box {
    padding: 18px 16px;
}

body.sb-modern #page-profile .plan-box-price {
    font-size: 24px;
    margin: 8px 0 3px;
}

body.sb-modern #page-profile .plan-box-features {
    gap: 5px;
    margin-bottom: 14px;
}

body.sb-modern #page-profile .pbf {
    font-size: 12.5px;
}

/* Sites, security, invoices — compact pcard padding */
body.sb-modern #page-profile #ptab-sites .pcard-body,
body.sb-modern #page-profile #ptab-security .pcard-body,
body.sb-modern #page-profile #ptab-invoices .pcard-body,
body.sb-modern #page-profile #ptab-notify .pcard-body {
    padding: 18px 22px 20px;
    gap: 10px;
}

/* Session rows — compact */
body.sb-modern #page-profile .session-row {
    padding: 12px 14px;
    gap: 12px;
    background: #f7f7f6;
    border-radius: 18px;
    margin-bottom: 8px;
}

/* Notification toggles — tighter */
body.sb-modern #page-profile #ptab-notify .toggle-row {
    padding: 13px 16px;
    margin-bottom: 8px;
    border-radius: 18px;
}

/* Responsive */
@media (max-width: 900px) {
    body.sb-modern #page-profile .ptab.active {
        max-width: 100%;
    }

    body.sb-modern #page-profile .pacc-form-grid {
        grid-template-columns: 1fr;
    }

    body.sb-modern #page-profile .pacc-field-full {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    body.sb-modern #page-profile .pacc-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    body.sb-modern #page-profile .pacc-identity {
        flex-wrap: wrap;
    }
}

/* ══════════════════════════════════════════════════════════════════
   PRX — BRAND NEW MODERN PROFILE (test account / sb-modern only)
   Style matches home.css hm-shell / hm-card design language.
   ══════════════════════════════════════════════════════════════════ */

/* ── Two-column layout ── */
body.sb-modern .prx-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

body.sb-modern .prx-aside {
    position: sticky;
    top: 20px;
}

body.sb-modern .prx-main {
    min-width: 0;
}

/* ── ID Card ── */
body.sb-modern .prx-id-card {
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(17,18,23,.08);
    box-shadow: 0 6px 28px rgba(17,18,23,.1);
}

/* ── Photo section (full-bleed top) ── */
body.sb-modern .prx-idc-photo-section {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f0f0ee;
}

body.sb-modern .prx-idc-bg-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

body.sb-modern .prx-idc-bg-initial {
    position: absolute;
    inset: 0;
    background: #A8E76A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 110px;
    font-weight: 900;
    color: #111217;
    letter-spacing: -4px;
    line-height: 1;
}

/* Top overlay: name + brand */
body.sb-modern .prx-idc-overlay-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(255,255,255,.82) 0%, transparent 100%);
    padding-bottom: 36px;
}

body.sb-modern .prx-idc-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #111217;
    line-height: 1.3;
    letter-spacing: 0;
}

body.sb-modern .prx-idc-since {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.7);
    background: rgba(255,255,255,.82);
    box-shadow:
        0 1px 0 rgba(255,255,255,.52) inset,
        0 7px 18px rgba(17,18,23,.16);
    backdrop-filter: blur(8px) saturate(1.1);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
    font-size: 11px;
    font-weight: 800;
    color: #3f4652;
    line-height: 1.1;
    margin-top: 7px;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

body.sb-modern .prx-idc-brand-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

body.sb-modern .prx-idc-club-badge {
    position: relative;
    display: grid;
    place-items: center;
}

body.sb-modern .prx-idc-brand-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(17,18,23,.14);
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    color: #111217;
    cursor: default;
    position: relative;
    overflow: hidden;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

body.sb-modern .prx-idc-brand-circle:hover {
    background: rgba(255,255,255,.9);
    border-color: rgba(17,18,23,.24);
    transform: translateY(-1px);
}

body.sb-modern .prx-idc-status-mark {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -47%);
}

body.sb-modern .prx-idc-club-tip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translate(6px, -50%) scale(.96);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 18, 23, .94);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 14px 32px rgba(17,18,23,.22);
    transition: opacity .16s ease, transform .16s ease;
    z-index: 5;
}

body.sb-modern .prx-idc-club-tip::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: rgba(17, 18, 23, .94);
    transform: translateY(-50%) rotate(45deg);
    border-radius: 2px;
}

body.sb-modern .prx-idc-club-badge:hover .prx-idc-club-tip {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
}

body.sb-modern .prx-idc-clock {
    font-family: 'Onest', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: rgba(17,18,23,.5);
    letter-spacing: .04em;
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(6px);
    padding: 3px 7px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Bottom overlay: team avatars */
body.sb-modern .prx-idc-overlay-bottom {
    position: absolute;
    bottom: 14px;
    left: 0; right: 0;
    padding: 0 16px;
    display: flex;
    justify-content: flex-end;
    z-index: 2;
}

body.sb-modern .prx-idc-avs {
    display: flex;
    align-items: center;
    padding: 4px 5px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(17,18,23,.18);
    box-shadow:
        0 10px 28px rgba(17,18,23,.2),
        inset 0 1px 0 rgba(255,255,255,.38);
    backdrop-filter: blur(10px) saturate(1.15);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
}

body.sb-modern .prx-idc-av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.96);
    box-shadow:
        0 0 0 1px rgba(17,18,23,.16),
        0 7px 16px rgba(17,18,23,.22);
    display: grid;
    place-items: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 900;
    margin-left: -9px;
    cursor: pointer;
    transition: transform .15s;
    position: relative;
}

body.sb-modern .prx-idc-av:first-child { margin-left: 0; }
body.sb-modern .prx-idc-av:hover { transform: translateY(-2px); }

body.sb-modern .prx-idc-av--you {
    background: linear-gradient(135deg, #C9FF78 0%, #8FE14D 100%);
    color: #111217;
    cursor: default;
    text-shadow: 0 1px 0 rgba(255,255,255,.24);
}

body.sb-modern .prx-idc-av--ghost {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(6px) saturate(1.1);
    -webkit-backdrop-filter: blur(6px) saturate(1.1);
    color: #4b5563;
    border-color: rgba(255,255,255,.98);
}

body.sb-modern .prx-idc-av--member {
    background: rgba(255,255,255,.88);
    color: #243026;
    overflow: hidden;
    padding: 0;
}

body.sb-modern .prx-idc-av--you,
body.sb-modern .prx-idc-av--member {
    overflow: hidden;
    padding: 0;
}

body.sb-modern .prx-idc-av--you img,
body.sb-modern .prx-idc-av--member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

body.sb-modern .prx-idc-av--plus {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(6px) saturate(1.1);
    -webkit-backdrop-filter: blur(6px) saturate(1.1);
    color: #243026;
    border-color: rgba(255,255,255,.98);
    font-family: 'Onest', sans-serif;
    font-size: 18px;
    font-weight: 300;
    border: 0;
    cursor: pointer;
}

/* ── Lime section ── */
body.sb-modern .prx-idc-lime {
    background: #A8E76A;
    padding: 14px 16px 16px;
}

body.sb-modern .prx-idc-lime-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

body.sb-modern .prx-idc-lime-kicker {
    display: block;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(17,18,23,.5);
    margin-bottom: 2px;
}

body.sb-modern .prx-idc-lime-title {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #111217;
    line-height: 1.1;
}

body.sb-modern .prx-idc-lime-acts {
    display: flex;
    align-items: center;
    gap: 5px;
}

body.sb-modern .prx-idc-act {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(17,18,23,.1);
    color: #111217;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

body.sb-modern .prx-idc-act:hover { background: rgba(17,18,23,.18); }

body.sb-modern .prx-idc-act--dark {
    background: #111217;
    color: #fff;
    width: 38px;
    height: 38px;
}

body.sb-modern .prx-idc-act--dark:hover { background: #1e2028; }

/* Row 2: QR + data */
body.sb-modern .prx-idc-lime-row2 {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: start;
}

body.sb-modern .prx-idc-qr {
    width: 82px;
    height: 82px;
    background: rgba(255,255,255,.35);
    border-radius: 14px;
    padding: 4px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

body.sb-modern .prx-idc-data {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

body.sb-modern .prx-idc-df small {
    display: block;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(17,18,23,.5);
    margin-bottom: 2px;
}

body.sb-modern .prx-idc-df strong {
    display: block;
    font-family: 'Onest', sans-serif;
    font-size: 13.5px;
    font-weight: 900;
    color: #111217;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 1000px) {
    body.sb-modern .prx-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 12px;
    }
}

@media (max-width: 800px) {
    body.sb-modern .prx-layout {
        grid-template-columns: 1fr;
    }

    body.sb-modern .prx-aside {
        position: static;
    }

    body.sb-modern .prx-id-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    body.sb-modern .prx-idc-photo {
        height: 180px;
    }
}

@media (max-width: 560px) {
    body.sb-modern .prx-id-card {
        display: block;
    }
}

/* ── Shell ── */
body.sb-modern .prx-shell {
    --prx-green:  #A8E76A;
    --prx-ink:    #111217;
    --prx-muted:  #8d919d;
    --prx-line:   rgba(17,18,23,.07);
    --prx-card:   rgba(255,255,255,.68);
    --prx-border: rgba(255,255,255,.72);
    padding: 22px 28px 40px;
    min-height: 100%;
    color: var(--prx-ink);
}

/* ── Topbar ── */
body.sb-modern .prx-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
}

body.sb-modern .prx-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

body.sb-modern .prx-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--prx-border);
    background: var(--prx-card);
    color: var(--prx-ink);
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}

body.sb-modern .prx-back-btn:hover {
    background: #fff;
    border-color: rgba(17,18,23,.12);
}

body.sb-modern .prx-back-btn svg {
    flex-shrink: 0;
}

body.sb-modern .prx-page-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--prx-ink);
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
}

body.sb-modern .prx-renew-btn {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    background: var(--prx-ink);
    color: #fff;
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}

body.sb-modern .prx-renew-btn:hover { opacity: .85; }

/* ── Hero card ── */
body.sb-modern .prx-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--prx-ink);
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

body.sb-modern .prx-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: 100px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(168,231,106,.28) 0%, transparent 70%);
    pointer-events: none;
}

body.sb-modern .prx-hero-id {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

body.sb-modern .prx-hero-ava {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--prx-green);
    color: var(--prx-ink);
    display: grid;
    place-items: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 900;
    flex-shrink: 0;
    overflow: hidden;
}

body.sb-modern .prx-hero-ava img {
    width: 100%; height: 100%; object-fit: cover;
}

body.sb-modern .prx-hero-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern .prx-hero-email {
    font-size: 13px;
    color: rgba(255,255,255,.42);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Hero stats ── */
body.sb-modern .prx-hero-stats {
    display: flex;
    align-items: stretch;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

body.sb-modern .prx-hstat {
    background: rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 10px 16px;
    min-width: 108px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.sb-modern .prx-hstat--lime {
    background: var(--prx-green);
}

body.sb-modern .prx-hstat-label {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    line-height: 1;
}

body.sb-modern .prx-hstat--lime .prx-hstat-label { color: rgba(17,18,23,.52); }

body.sb-modern .prx-hstat-val {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    margin-top: 7px;
    line-height: 1.15;
    display: block;
}

body.sb-modern .prx-hstat--lime .prx-hstat-val { color: var(--prx-ink); }

body.sb-modern .prx-hstat-sub {
    font-size: 11px;
    color: rgba(255,255,255,.38);
    margin-top: 4px;
    display: block;
}

body.sb-modern .prx-hstat--lime .prx-hstat-sub { color: rgba(17,18,23,.48); }

/* ── Tab bar ── */
/* ── Tab bar: underline indicator style ── */
body.sb-modern .prx-tabbar {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: transparent;
    border: 0;
    border-bottom: 1.5px solid rgba(17,18,23,.08);
    border-radius: 0;
    padding: 0;
    margin-bottom: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

body.sb-modern .prx-tabbar::-webkit-scrollbar { display: none; }

body.sb-modern .prx-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 16px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: var(--prx-muted);
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color .18s;
}

body.sb-modern .prx-tab::after {
    content: '';
    position: absolute;
    bottom: -6.4px;
    left: 0px;
    /* left: 16px; */
    right: 16px;
    height: 2.5px;
    border-radius: 999px;
    background: #A8E76A;
    opacity: 0;
    transform: scaleX(.4);
    transition: opacity .18s, transform .22s;
    width: 100%;
}

body.sb-modern .prx-tab:hover {
    color: var(--prx-ink);
    background: transparent;
}

body.sb-modern .prx-tab.active {
    color: var(--prx-ink);
    font-weight: 900;
    background: transparent;
}

body.sb-modern .prx-tab.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* ══════════════════════════════════════════════════
   ACCOUNT TAB — new 2-col design (dark left + form right)
   ══════════════════════════════════════════════════ */

body.sb-modern .pacc-layout {
    display: block;
}

/* Right: form card */
body.sb-modern .pacc-form-card {
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 20px;
    overflow: hidden;
}

body.sb-modern .pacc-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 16px;
    border-bottom: 1px solid rgba(17,18,23,.07);
}

body.sb-modern .pacc-form-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #111217;
    line-height: 1.2;
}

body.sb-modern .pacc-form-sub {
    font-size: 12px;
    color: #8d919d;
    margin-top: 3px;
}

body.sb-modern .pacc-form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

body.sb-modern .pacc-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(17,18,23,.12);
    background: rgba(17,18,23,.05);
    color: #8d919d;
    font-family: 'Onest', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}

body.sb-modern .pacc-upload-btn:hover {
    background: rgba(17,18,23,.09);
    color: #111217;
    border-color: rgba(17,18,23,.2);
}

body.sb-modern .pacc-save-btn {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    background: #111217;
    color: #fff;
    font-family: 'Onest', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s;
    flex-shrink: 0;
}

body.sb-modern .pacc-save-btn:hover { opacity: .82; }

body.sb-modern .pacc-form-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.sb-modern .pacc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

body.sb-modern .pacc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.sb-modern .pacc-field label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8d919d;
}

body.sb-modern .pacc-input {
    width: 100%;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(17,18,23,.09);
    border-radius: 14px;
    color: #111217;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    padding: 11px 14px;
    min-height: 46px;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

body.sb-modern .pacc-input:focus {
    background: #fff;
    border-color: rgba(168,231,106,.85);
    box-shadow: 0 0 0 3px rgba(168,231,106,.18);
}

body.sb-modern .pacc-input::placeholder { color: rgba(17,18,23,.3); }

/* Responsive */
@media (max-width: 860px) {
    body.sb-modern .pacc-layout {
        grid-template-columns: 1fr;
    }

    body.sb-modern .pacc-id-card {
        flex-direction: row;
        min-height: 0;
    }

    body.sb-modern .pacc-id-top {
        flex: 0 0 auto;
        width: 200px;
    }

    body.sb-modern .pacc-id-bottom {
        flex: 1;
        border-top: 0;
        border-left: 1px solid rgba(255,255,255,.07);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    body.sb-modern .pacc-id-card { flex-direction: column; }
    body.sb-modern .pacc-id-top { width: auto; }
    body.sb-modern .pacc-id-bottom { border-left: 0; border-top: 1px solid rgba(255,255,255,.07); }
    body.sb-modern .pacc-row { grid-template-columns: 1fr; }
}

/* ── Content ── */
body.sb-modern .prx-content { width: 100%; }

body.sb-modern .prx-content .ptab,
body.sb-modern .prx-content .ptab.active {
    max-width: none;
    width: 100%;
}

/* ptab visibility — works the same */
body.sb-modern .prx-content .ptab        { display: none; animation: fadeUp .18s ease; }
body.sb-modern .prx-content .ptab.active { display: block; }

/* ── Cards inside prx-content (hm-card style) ── */
body.sb-modern .prx-content .pcard {
    background: var(--prx-card);
    border: 1px solid var(--prx-border);
    border-radius: 20px;
    box-shadow: 0 1px 0 rgba(17,18,23,.035);
    backdrop-filter: none;
    margin-bottom: 12px;
    overflow: hidden;
}

body.sb-modern .prx-content .pcard:last-child { margin-bottom: 0; }

body.sb-modern .prx-content .pcard--danger {
    border-color: rgba(220,38,38,.18);
}

body.sb-modern .prx-content .pcard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--prx-line);
    min-height: 0;
}

body.sb-modern .prx-content .pcard-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--prx-ink);
    letter-spacing: 0;
}

body.sb-modern .prx-content .pcard-subtitle,
body.sb-modern .prx-content .pcard-hint {
    font-size: 12px;
    color: var(--prx-muted);
    margin-top: 3px;
    line-height: 1.45;
}

body.sb-modern .prx-content .pcard-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.sb-modern .prx-content .pcard-body--gap-sm { gap: 8px; }
body.sb-modern .prx-content .pcard-body--no-gap { gap: 0; }
body.sb-modern .prx-content .pcard-body--centered { align-items: center; text-align: center; }

/* ── Account tab ── */
body.sb-modern .prx-content .pacc-head {
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
}

body.sb-modern .prx-content .pacc-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

body.sb-modern .prx-content .pacc-ava {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--prx-green);
    color: var(--prx-ink);
    display: grid;
    place-items: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 900;
    flex-shrink: 0;
    overflow: hidden;
}

body.sb-modern .prx-content .pacc-ava img { width: 100%; height: 100%; object-fit: cover; }

body.sb-modern .prx-content .pacc-copy { flex: 1; min-width: 0; }

body.sb-modern .prx-content .pacc-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: var(--prx-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

body.sb-modern .prx-content .pacc-email {
    font-size: 12px;
    color: var(--prx-muted);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern .prx-content .pacc-photo-btn {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(17,18,23,.06);
    color: var(--prx-muted);
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}

body.sb-modern .prx-content .pacc-photo-btn:hover {
    background: rgba(17,18,23,.1);
    color: var(--prx-ink);
}

body.sb-modern .prx-content .pacc-body { padding: 18px 20px 20px; }

body.sb-modern .prx-content .pacc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

body.sb-modern .prx-content .pacc-full { grid-column: span 2; }

/* ── Action button (Save) ── */
body.sb-modern .prx-action-btn {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    background: var(--prx-ink);
    color: #fff;
    font-family: 'Onest', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s;
    flex-shrink: 0;
}

body.sb-modern .prx-action-btn:hover { opacity: .82; }

/* ── All prx pfield / pinput ── */
body.sb-modern .prx-content .pfield {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.sb-modern .prx-content .pfield label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--prx-muted);
}

body.sb-modern .prx-content .pinput {
    width: 100%;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(17,18,23,.09);
    border-radius: 14px;
    color: var(--prx-ink);
    font-family: 'Onest', sans-serif;
    font-size: 13.5px;
    padding: 10px 13px;
    min-height: 44px;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    appearance: none;
}

body.sb-modern .prx-content .pinput:focus {
    border-color: rgba(168,231,106,.85);
    box-shadow: 0 0 0 3px rgba(168,231,106,.18);
    background: #fff;
}

/* ── Buttons in prx-content ── */
body.sb-modern .prx-content .btn {
    display: inline-flex;
    align-items: center;
    font-family: 'Onest', sans-serif;
    font-weight: 800;
    cursor: pointer;
    border-radius: 999px;
    transition: opacity .15s, background .15s;
    white-space: nowrap;
}

body.sb-modern .prx-content .btn-sm {
    height: 32px;
    padding: 0 14px;
    font-size: 12px;
}

body.sb-modern .prx-content .btn-primary {
    background: var(--prx-ink);
    color: #fff;
    border: 0;
}

body.sb-modern .prx-content .btn-primary:hover { opacity: .82; }

body.sb-modern .prx-content .btn-ghost {
    background: rgba(17,18,23,.06);
    color: var(--prx-muted);
    border: 0;
}

body.sb-modern .prx-content .btn-ghost:hover {
    background: rgba(17,18,23,.11);
    color: var(--prx-ink);
}

body.sb-modern .prx-content .btn-outline-danger {
    background: transparent;
    color: #dc2626;
    border: 1.5px solid rgba(220,38,38,.3);
}

body.sb-modern .prx-content .btn-outline-danger:hover {
    background: rgba(220,38,38,.06);
}

/* ── Chips in prx-content ── */
body.sb-modern .prx-content .chip-green {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(168,231,106,.24);
    color: #2d5c1a;
    font-size: 11.5px;
    font-weight: 900;
}

body.sb-modern .prx-content .chip-neutral,
body.sb-modern .prx-content .chip-neutral-sm {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17,18,23,.07);
    color: var(--prx-muted);
    font-size: 11.5px;
    font-weight: 800;
}

body.sb-modern .prx-content .chip-orange {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(234,88,12,.12);
    color: #c2560a;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
}

body.sb-modern .prx-content .chip-red {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(220,38,38,.1);
    color: #dc2626;
    font-size: 11.5px;
    font-weight: 800;
}

/* ── Subscription stats ── */
body.sb-modern .prx-content .pstats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

body.sb-modern .prx-content .pstat-box {
    background: rgba(17,18,23,.04);
    border-radius: 14px;
    padding: 12px 14px;
    text-align: left;
}

body.sb-modern .prx-content .pcard-sub-summary .pstat-box:first-child {
    background: var(--prx-ink);
}

body.sb-modern .prx-content .pstat-label {
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--prx-muted);
}

body.sb-modern .prx-content .pcard-sub-summary .pstat-box:first-child .pstat-label {
    color: rgba(255,255,255,.45);
}

body.sb-modern .prx-content .pstat-val {
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    font-weight: 900;
    color: var(--prx-ink);
    margin-top: 7px;
    display: block;
}

body.sb-modern .prx-content .pcard-sub-summary .pstat-box:first-child .pstat-val {
    color: var(--prx-green);
    background: none;
    -webkit-text-fill-color: unset;
}

body.sb-modern .prx-content .pstat-val--danger { color: #dc2626; }

/* ── Plans grid ── */
body.sb-modern .prx-content .plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.sb-modern .prx-content .plan-box {
    background: rgba(17,18,23,.04);
    border: 0;
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    transition: background .15s, transform .15s;
}

body.sb-modern .prx-content .plan-box:hover {
    background: rgba(17,18,23,.07);
    transform: translateY(-1px);
}

body.sb-modern .prx-content .plan-box-current {
    background: var(--prx-green);
    pointer-events: none;
}

body.sb-modern .prx-content .plan-box-popular {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--prx-ink);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    left: auto;
    transform: none;
    box-shadow: none;
}

body.sb-modern .prx-content .plan-box-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--prx-ink);
    margin-bottom: 3px;
}

body.sb-modern .prx-content .plan-box-price {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--prx-ink);
    margin: 8px 0 3px;
}

body.sb-modern .prx-content .plan-box-price span { font-size: 11px; font-weight: 400; color: var(--prx-muted); font-family: 'Onest', sans-serif; }
body.sb-modern .prx-content .plan-box-desc { font-size: 11.5px; color: var(--prx-muted); margin-bottom: 10px; }
body.sb-modern .prx-content .plan-box-features { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
body.sb-modern .prx-content .pbf { font-size: 12px; color: var(--prx-ink); }
body.sb-modern .prx-content .pbf-off { color: rgba(17,18,23,.3); }

body.sb-modern .prx-content .plan-box-current .plan-box-name,
body.sb-modern .prx-content .plan-box-current .plan-box-price,
body.sb-modern .prx-content .plan-box-current .plan-box-desc,
body.sb-modern .prx-content .plan-box-current .pbf { color: var(--prx-ink); }
body.sb-modern .prx-content .plan-box-current .pbf-off { color: rgba(17,18,23,.35); }

body.sb-modern .prx-content .plan-box-btn {
    width: 100%;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(17,18,23,.1);
    color: var(--prx-ink);
    font-family: 'Onest', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s;
}

body.sb-modern .prx-content .plan-box-btn:hover {
    background: var(--prx-ink);
    color: #fff;
}

body.sb-modern .prx-content .plan-box-current-label {
    width: 100%;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(17,18,23,.14);
    color: var(--prx-ink);
    font-family: 'Onest', sans-serif;
    font-size: 12.5px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ── Payment wallet ── */
body.sb-modern .prx-content .pcard-payment-wallet .pcard-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    align-items: stretch;
}

body.sb-modern .prx-content .payment-add-card-tile {
    min-height: 140px;
    border: 1.5px dashed rgba(17,18,23,.16);
    border-radius: 18px;
    background: transparent;
    color: var(--prx-ink);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    text-align: left;
}

body.sb-modern .prx-content .payment-add-card-tile:hover {
    background: rgba(255,255,255,.5);
    border-color: var(--prx-green);
}

body.sb-modern .prx-content .payment-add-card-tile span {
    width: 40px; height: 40px;
    border-radius: 14px;
    background: var(--prx-green);
    color: var(--prx-ink);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

body.sb-modern .prx-content .payment-add-card-tile strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
}

body.sb-modern .prx-content .payment-add-card-tile small {
    color: var(--prx-muted);
    font-size: 11px;
    line-height: 1.35;
}

body.sb-modern .prx-content .pcard-payment-wallet .payment-row {
    min-height: 140px;
    border: 0;
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 85% 16%, rgba(168,231,106,.2), transparent 36%),
        #111217;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 16px;
    align-items: flex-start;
}

body.sb-modern .prx-content .pcard-payment-wallet .payment-row-icon {
    width: 36px; height: 36px;
    border-radius: 12px;
    background: rgba(255,255,255,.1);
    display: grid;
    place-items: center;
}

body.sb-modern .prx-content .pcard-payment-wallet .payment-row-info { width: 100%; }
body.sb-modern .prx-content .pcard-payment-wallet .payment-row-name { color: #fff; font-size: 15px; font-weight: 800; }
body.sb-modern .prx-content .pcard-payment-wallet .payment-row-exp { color: rgba(255,255,255,.45); font-size: 12px; }

body.sb-modern .prx-content .pcard-payment-wallet .payment-row .btn-ghost {
    background: rgba(255,255,255,.1);
    color: #fff;
}

body.sb-modern .prx-content .pcard-payment-wallet .payment-row .chip-green {
    background: var(--prx-green);
    color: var(--prx-ink);
}

/* ── Site items ── */
body.sb-modern .prx-content .site-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(17,18,23,.04);
    border-radius: 14px;
    border: 0;
    transition: background .15s;
}

body.sb-modern .prx-content .site-item:not(.site-item-active) {
    border: 1.5px dashed rgba(17,18,23,.12);
    background: transparent;
}

body.sb-modern .prx-content .site-item:hover { background: rgba(17,18,23,.07); }

body.sb-modern .prx-content .site-item-active {
    background: rgba(168,231,106,.16);
    border: 1px solid rgba(168,231,106,.4);
}

body.sb-modern .prx-content .site-item-active:hover {
    background: rgba(168,231,106,.22);
}

body.sb-modern .prx-content .site-item-fav {
    width: 40px; height: 40px;
    border-radius: 13px;
    background: var(--prx-green);
    color: var(--prx-ink);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: none;
}

body.sb-modern .prx-content .site-item-fav--empty {
    background: rgba(17,18,23,.08);
    color: var(--prx-muted);
}

body.sb-modern .prx-content .site-item-name { font-weight: 800; font-size: 13.5px; color: var(--prx-ink); }
body.sb-modern .prx-content .site-item-name--muted { color: var(--prx-muted); font-weight: normal; }
body.sb-modern .prx-content .site-item-meta { font-size: 12px; color: var(--prx-muted); margin-top: 2px; }

/* ── Notifications toggles ── */
body.sb-modern .prx-content .toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
    background: rgba(17,18,23,.04);
    border-radius: 14px;
    margin-bottom: 8px;
}

body.sb-modern .prx-content .toggle-row--last { margin-bottom: 0; }
body.sb-modern .prx-content .toggle-title { font-size: 13.5px; font-weight: 800; color: var(--prx-ink); }
body.sb-modern .prx-content .toggle-desc { font-size: 12px; color: var(--prx-muted); margin-top: 2px; }

body.sb-modern .prx-content .toggle {
    width: 46px; height: 26px;
    border-radius: 999px;
    background: rgba(17,18,23,.14);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
}

body.sb-modern .prx-content .toggle.on { background: var(--prx-green); }

body.sb-modern .prx-content .toggle-knob {
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(17,18,23,.18);
    transition: transform .2s;
}

body.sb-modern .prx-content .toggle.on .toggle-knob { transform: translateX(20px); }

/* ── Invoices table ── */
body.sb-modern .prx-content .inv-table { width: 100%; border-collapse: collapse; }

body.sb-modern .prx-content .inv-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 9.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--prx-muted);
    background: rgba(17,18,23,.03);
    border-bottom: 1px solid var(--prx-line);
}

body.sb-modern .prx-content .inv-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--prx-line);
    color: var(--prx-ink);
}

body.sb-modern .prx-content .inv-table tr:last-child td { border-bottom: none; }
body.sb-modern .prx-content .inv-table tr:hover td { background: rgba(17,18,23,.025); }
body.sb-modern .prx-content .inv-desc { font-weight: 700; }
body.sb-modern .prx-content .inv-type { font-size: 11px; color: var(--prx-muted); }
body.sb-modern .prx-content .inv-dl { color: #2d5c1a; font-weight: 800; cursor: pointer; font-size: 12px; }
body.sb-modern .prx-content .inv-dl:hover { text-decoration: underline; }

/* ── Security: sessions + danger ── */
body.sb-modern .prx-content .session-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(17,18,23,.04);
    border-radius: 14px;
    margin-bottom: 8px;
}

body.sb-modern .prx-content .session-row:last-child { margin-bottom: 0; }
body.sb-modern .prx-content .session-icon { font-size: 18px; flex-shrink: 0; }
body.sb-modern .prx-content .session-info { flex: 1; }
body.sb-modern .prx-content .session-device { font-weight: 800; font-size: 13px; color: var(--prx-ink); }
body.sb-modern .prx-content .session-meta { font-size: 11.5px; color: var(--prx-muted); }

body.sb-modern .prx-content .danger-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.sb-modern .prx-content .danger-row-title { font-weight: 800; font-size: 13.5px; color: var(--prx-ink); }
body.sb-modern .prx-content .danger-row-desc { font-size: 12px; color: var(--prx-muted); margin-top: 3px; }

body.sb-modern .prx-content .pcard-title--danger { color: #dc2626; }
body.sb-modern .prx-content .pfield-error { font-size: 12px; color: #dc2626; }

/* ── Two-col layout in prx (security tab) ── */
body.sb-modern .prx-content .prof-two-col {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

body.sb-modern .prx-content .pcard-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Audit tab ── */
body.sb-modern .prx-content .audit-launch-block,
body.sb-modern .prx-content .audit-score-hero,
body.sb-modern .prx-content .audit-mode-bar,
body.sb-modern .prx-content .audit-list-item,
body.sb-modern .prx-content .audit-compare-selectors-wrap {
    background: rgba(17,18,23,.04);
    border: 0;
    border-radius: 16px;
    box-shadow: none;
}

body.sb-modern .prx-content .audit-mode-btn.active {
    background: var(--prx-ink);
    color: #fff;
    border-radius: 999px;
}

body.sb-modern .prx-content .audit-selector {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(17,18,23,.09);
    border-radius: 12px;
}

/* ── Payment/cancel modals ── */
body.sb-modern #modal-plan > div,
body.sb-modern #modal-cancel > div,
body.sb-modern #modal-delete-account > div {
    background: #fff !important;
    color: var(--prx-ink, #111217) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(17,18,23,.07) !important;
    box-shadow: 0 24px 64px rgba(17,18,23,.2) !important;
}

/* ── Payment banners ── */
body.sb-modern #payment-ok-banner {
    background: var(--prx-green, #A8E76A) !important;
    color: var(--prx-ink, #111217) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
}

body.sb-modern #payment-result-banner {
    background: rgba(255,255,255,.72) !important;
    color: var(--prx-ink, #111217) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    body.sb-modern .prx-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    body.sb-modern .prx-hero-stats { width: 100%; }
    body.sb-modern .prx-hstat { flex: 1; }
}

@media (max-width: 900px) {
    body.sb-modern .prx-shell { padding: 16px 18px 32px; }

    body.sb-modern .prx-content .prof-two-col {
        grid-template-columns: 1fr;
    }

    body.sb-modern .prx-content .pstats-grid,
    body.sb-modern .prx-content .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.sb-modern .prx-content .pacc-grid {
        grid-template-columns: 1fr;
    }

    body.sb-modern .prx-content .pacc-full { grid-column: auto; }
}

@media (max-width: 640px) {
    body.sb-modern .prx-shell { padding: 12px 14px 28px; }
    body.sb-modern .prx-page-title { font-size: 17px; }

    body.sb-modern .prx-hero-stats { flex-wrap: wrap; gap: 6px; }
    body.sb-modern .prx-hstat { min-width: calc(50% - 3px); flex: none; }

    body.sb-modern .prx-tabbar { border-radius: 0; }

    body.sb-modern .prx-content .pstats-grid { grid-template-columns: 1fr 1fr; }
    body.sb-modern .prx-content .plans-grid  { grid-template-columns: 1fr; }

    body.sb-modern .prx-content .pacc-head { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════
   PLAN PERIOD TOGGLE — monthly / yearly
   ══════════════════════════════════════════════════════════ */

body.sb-modern .prx-content .plan-period-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

body.sb-modern .prx-content .plan-period-toggle {
    display: flex;
    gap: 4px;
    background: rgba(17,18,23,.06);
    border-radius: 999px;
    padding: 4px;
}

body.sb-modern .prx-content .plan-period-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 20px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: #8d919d;
    font-family: 'Onest', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
}

body.sb-modern .prx-content .plan-period-btn--active {
    background: #fff;
    color: #111217;
    box-shadow: 0 1px 6px rgba(17,18,23,.1);
}

body.sb-modern .prx-content .plan-period-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: #A8E76A;
    color: #111217;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .01em;
}

/* Yearly savings hint under price */
body.sb-modern .prx-content .plan-box-price-yearly-hint {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: -10px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #8d919d;
    font-weight: 600;
}

body.sb-modern .prx-content .plan-box-price-old {
    text-decoration: line-through;
    color: #bbbec6;
}

/* ══════════════════════════════════════════════════════════
   PLAN CARDS — reference style (all users, modern only via body.sb-modern)
   ══════════════════════════════════════════════════════════ */

body.sb-modern .prx-content .plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

body.sb-modern .prx-content .plan-box {
    background: #fff;
    border: 1.5px solid rgba(17,18,23,.08);
    border-radius: 26px;
    padding: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: transform .18s, box-shadow .18s;
    box-shadow: 0 2px 8px rgba(17,18,23,.04);
}

body.sb-modern .prx-content .plan-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(17,18,23,.09);
    border-color: rgba(17,18,23,.14);
}

body.sb-modern .prx-content .plan-box-current {
    border-color: #A8E76A;
    background: #fff;
    pointer-events: none;
}

body.sb-modern .prx-content .plan-box-popular-card {
    border-color: rgba(17,18,23,.1);
}

/* Popular badge — top right */
body.sb-modern .prx-content .plan-box-popular {
    position: absolute;
    top: 20px; right: 20px;
    background: #A8E76A;
    color: #111217;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 900;
    padding: 5px 12px;
    left: auto;
    transform: none;
    box-shadow: none;
    letter-spacing: .02em;
}

/* Plan name */
body.sb-modern .prx-content .plan-box-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111217;
    letter-spacing: 0;
    margin-bottom: 20px;
    line-height: 1.1;
}

/* Big price — high specificity to override old profile rules */
body.sb-modern #page-profile .prx-content .plan-box-price,
body.sb-modern .prx-content .plan-box-price {
    font-family: 'Unbounded', sans-serif;
    font-size: 42px !important;
    font-weight: 900 !important;
    color: #111217 !important;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: none !important;
    -webkit-text-fill-color: #111217 !important;
}

body.sb-modern #page-profile .prx-content .plan-box--business .plan-box-price,
body.sb-modern .prx-content .plan-box--business .plan-box-price {
    color: #111217 !important;
    -webkit-text-fill-color: #111217 !important;
}

body.sb-modern #page-profile .prx-content .plan-box-price-val {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    -webkit-text-fill-color: inherit;
}

body.sb-modern #page-profile .prx-content .plan-box-price-per,
body.sb-modern .prx-content .plan-box-price-per {
    font-family: 'Onest', sans-serif;
    font-size: 15px !important;
    font-weight: 500;
    color: #8d919d !important;
    -webkit-text-fill-color: #8d919d !important;
    margin-bottom: 8px;
    letter-spacing: 0;
    background: none !important;
}

/* Features wrap — colored block */
body.sb-modern .prx-content .plan-box-features-wrap {
    margin-bottom: 16px;
    flex: 1;
}

body.sb-modern .prx-content .plan-box-features {
    background: rgba(17,18,23,.04);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

body.sb-modern .prx-content .plan-box--pro .plan-box-features {
    background: rgba(168,231,106,.18);
}

body.sb-modern .prx-content .plan-box--business .plan-box-features {
    background: rgba(168,231,106,.1);
}

/* Feature rows */
body.sb-modern .prx-content .pbf {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 2px;
    font-size: 13px;
    font-weight: 600;
    color: #111217;
    border-bottom: 0;
}

body.sb-modern .prx-content .pbf::before {
    content: '';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    background:
        #A8E76A
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-6' stroke='%23111217' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E")
        center/12px no-repeat;
}

body.sb-modern .prx-content .pbf-off {
    color: #aab0bb;
}

body.sb-modern .prx-content .pbf-off::before {
    background:
        rgba(220,38,38,.1)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%23dc2626' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E")
        center/10px no-repeat;
}

/* Tagline below features */
body.sb-modern .prx-content .plan-box-desc {
    font-size: 12.5px;
    color: #8d919d;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* CTA button */
body.sb-modern .prx-content .plan-box-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: #111217;
    color: #fff;
    font-family: 'Onest', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
    margin-top: auto;
}

body.sb-modern .prx-content .plan-box-btn:hover {
    opacity: .86;
    transform: translateY(-1px);
}

body.sb-modern .prx-content .plan-box--pro .plan-box-btn {
    background: #A8E76A;
    color: #111217;
}

body.sb-modern .prx-content .plan-box--pro .plan-box-btn:hover {
    opacity: .9;
}

/* Current plan label */
body.sb-modern .prx-content .plan-box-current-label {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: #A8E76A;
    color: #111217;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 860px) {
    body.sb-modern .prx-content .plans-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════
   WALLET STACK — stacked card deck UI
   ══════════════════════════════════════════════════════════ */

/* Payment section 2-col layout */
body.sb-modern .prx-content .pwallet-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

body.sb-modern .prx-content .pwallet-left {
    min-width: 0;
}

body.sb-modern .prx-content .pwallet-right {
    min-width: 0;
}

/* History section */
body.sb-modern .prx-content .hist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

body.sb-modern .prx-content .hist-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111217;
    letter-spacing: 0;
    margin: 0;
}

body.sb-modern .prx-content .hist-see-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(17,18,23,.06);
    color: #555b66;
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

body.sb-modern .prx-content .hist-see-all:hover {
    background: #111217;
    color: #fff;
}

/* History modal */
body.sb-modern .hist-modal-box {
    background: #fff;
    border-radius: 26px;
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: 72vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(17,18,23,.22);
    transform: scale(.96) translateY(8px);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

body.sb-modern .hist-modal-box--in {
    transform: scale(1) translateY(0);
    opacity: 1;
}

body.sb-modern .hist-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(17,18,23,.07);
    flex-shrink: 0;
}

body.sb-modern .hist-modal-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #111217;
}

body.sb-modern .hist-modal-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 0;
    background: rgba(17,18,23,.06);
    color: #555b66;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s, color .15s;
}

body.sb-modern .hist-modal-close:hover {
    background: rgba(17,18,23,.12);
    color: #111217;
}

body.sb-modern .hist-modal-body {
    overflow-y: auto;
    padding: 10px 22px 22px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(17,18,23,.12) transparent;
}

body.sb-modern .hist-modal-body::-webkit-scrollbar {
    width: 4px;
}

body.sb-modern .hist-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

body.sb-modern .hist-modal-body::-webkit-scrollbar-thumb {
    background: rgba(17,18,23,.12);
    border-radius: 999px;
}

body.sb-modern .prx-content .hist-empty {
    font-size: 13px;
    color: #8d919d;
    padding: 20px 0;
}

body.sb-modern .prx-content .hist-group {
    margin-bottom: 4px;
}

body.sb-modern .prx-content .hist-date {
    font-size: 12px;
    color: #8d919d;
    font-weight: 600;
    padding: 10px 0 6px;
}

body.sb-modern .prx-content .hist-group:first-child .hist-date {
    padding-top: 0;
}

body.sb-modern .prx-content .hist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(17,18,23,.05);
}

body.sb-modern .prx-content .hist-item:last-child {
    border-bottom: 0;
}

body.sb-modern .prx-content .hist-receipt-btn,
body.sb-modern .hist-modal-body .hist-receipt-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(17,18,23,.1);
    background: rgba(17,18,23,.04);
    color: #8d919d;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, border-color .15s, color .15s;
}

body.sb-modern .prx-content .hist-receipt-btn:hover,
body.sb-modern .hist-modal-body .hist-receipt-btn:hover {
    background: #111217;
    border-color: #111217;
    color: #fff;
}

body.sb-modern .prx-content .hist-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #111217;
    color: #fff;
    display: grid;
    place-items: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 900;
    flex-shrink: 0;
}

body.sb-modern .prx-content .hist-info {
    flex: 1;
    min-width: 0;
}

body.sb-modern .prx-content .hist-name {
    font-size: 14px;
    font-weight: 800;
    color: #111217;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern .prx-content .hist-type {
    font-size: 12px;
    color: #8d919d;
    margin-top: 2px;
}

body.sb-modern .prx-content .hist-meta {
    text-align: right;
    flex-shrink: 0;
}

body.sb-modern .prx-content .hist-amount {
    font-size: 14px;
    font-weight: 800;
    color: #111217;
}

body.sb-modern .prx-content .hist-time {
    font-size: 11.5px;
    color: #8d919d;
    margin-top: 2px;
}

/* Wstack */
body.sb-modern .prx-content .wstack {
    position: relative;
    width: 100%;
    transition: height .3s ease;
}

/* Placeholder — transparent dashed outline, always front */
body.sb-modern .prx-content .wstack-placeholder {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 164px;
}

body.sb-modern .prx-content .wstack-add-btn {
    width: 100%;
    height: 164px;
    border: 1.5px dashed rgba(17,18,23,.2);
    border-radius: 22px;
    background: rgba(255,255,255,.5);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: border-color .18s, background .18s;
    font-family: 'Onest', sans-serif;
}

body.sb-modern .prx-content .wstack-add-btn:hover {
    border-color: #A8E76A;
    background: rgba(168,231,106,.06);
}

body.sb-modern .prx-content .wstack-add-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1.5px dashed rgba(17,18,23,.18);
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 300;
    color: #8d919d;
    line-height: 1;
    transition: border-color .18s, color .18s;
}

body.sb-modern .prx-content .wstack-add-btn:hover .wstack-add-icon {
    border-color: #A8E76A;
    color: #2d5c1a;
}

body.sb-modern .prx-content .wstack-add-label {
    font-size: 14px;
    font-weight: 800;
    color: #111217;
}

body.sb-modern .prx-content .wstack-add-hint {
    font-size: 12px;
    color: #8d919d;
}

/* Real cards — dark, stacked behind placeholder */
body.sb-modern .prx-content .wstack-card {
    position: absolute;
    left: 0; right: 0;
    height: 164px;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 84% 12%, rgba(168,231,106,.2) 0%, transparent 40%),
        linear-gradient(145deg, #131417 0%, #1c1e24 100%);
    transition: transform .2s ease, box-shadow .2s ease, bottom .3s ease;
    cursor: default;
}

/* Every second card gets a slightly lighter shade to distinguish stacked cards */
body.sb-modern .prx-content .wstack-card:nth-child(even) {
    background:
        radial-gradient(ellipse at 16% 88%, rgba(168,231,106,.14) 0%, transparent 38%),
        linear-gradient(145deg, #1a1c22 0%, #23252d 100%);
}

body.sb-modern .prx-content .wstack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(17,18,23,.22);
}

/* Peek strip — exactly 62px visible above placeholder */
body.sb-modern .prx-content .wstack-peek {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

body.sb-modern .prx-content .wstack-peek-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.sb-modern .prx-content .wstack-brand {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
}

body.sb-modern .prx-content .wstack-num {
    font-size: 13px;
    color: rgba(255,255,255,.48);
    letter-spacing: .04em;
}

body.sb-modern .prx-content .wstack-peek-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

body.sb-modern .prx-content .wstack-chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #A8E76A;
    color: #111217;
    font-size: 10.5px;
    font-weight: 900;
}

body.sb-modern .prx-content .wstack-act-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.65);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

body.sb-modern .prx-content .wstack-act-btn:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
}

body.sb-modern .prx-content .wstack-act-btn--del:hover {
    background: rgba(220,38,38,.25);
    color: #fca5a5;
}

/* Full card body (hidden under placeholder, for context) */
body.sb-modern .prx-content .wstack-body {
    padding: 14px 18px;
}

body.sb-modern .prx-content .wstack-card-num {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: rgba(255,255,255,.5);
    letter-spacing: .08em;
}

body.sb-modern .prx-content .wstack-card-exp {
    font-size: 12px;
    color: rgba(255,255,255,.32);
    margin-top: 6px;
}

/* ══════════════════════════════════════
   TEAM BLOCK — .tm-*
   Light floating card, placed in prx-aside below prx-id-card
   ══════════════════════════════════════ */

body.sb-modern .tm-card {
    margin-top: 12px;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(17,18,23,.07);
    box-shadow: 0 6px 24px rgba(17,18,23,.1);
}

/* ── Header ── */
body.sb-modern .tm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px 13px;
    border-bottom: 1px solid rgba(17,18,23,.06);
}

body.sb-modern .tm-head-left {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

body.sb-modern .tm-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #111217;
    letter-spacing: 0;
}

body.sb-modern .tm-count {
    font-size: 11px;
    color: #9299a6;
    font-weight: 700;
}

body.sb-modern .tm-head-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

body.sb-modern .tm-invite-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 13px;
    border-radius: 999px;
    border: 0;
    background: #A8E76A;
    color: #111217;
    font-family: 'Onest', sans-serif;
    font-size: 11.5px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s, transform .15s;
}

body.sb-modern .tm-invite-trigger:hover {
    opacity: .85;
    transform: translateY(-1px);
}

body.sb-modern .tm-collapse-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background: rgba(17,18,23,.06);
    color: #8d919d;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

body.sb-modern .tm-collapse-btn:hover {
    background: rgba(17,18,23,.1);
    color: #111217;
}

body.sb-modern #tm-chevron {
    transition: transform .22s ease;
}

/* ── Body (collapsible) ── */
body.sb-modern .tm-body {
    overflow: hidden;
    max-height: 600px;
    transition: max-height .28s ease, opacity .22s ease, transform .26s cubic-bezier(.2,.8,.2,1);
    opacity: 1;
    transform: translateX(0);
}

body.sb-modern .tm-body--collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateX(-18px);
}

body.sb-modern .tm-card--engage-open {
    box-shadow: 0 12px 34px rgba(17,18,23,.14);
}

/* ── Member list ── */
body.sb-modern .tm-list {
    padding: 8px 10px 4px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

body.sb-modern .tm-member {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 8px;
    border-radius: 13px;
    transition: background .15s, opacity .22s, transform .22s;
}

body.sb-modern .tm-member:hover {
    background: rgba(17,18,23,.04);
}

body.sb-modern .tm-member--pending {
    background: rgba(17,18,23,.035);
}

body.sb-modern .tm-member--pending:hover {
    background: rgba(17,18,23,.055);
}

/* ── Avatar ── */
body.sb-modern .tm-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
}

/* ── Info ── */
body.sb-modern .tm-info {
    flex: 1;
    min-width: 0;
}

body.sb-modern .tm-name {
    font-size: 13px;
    font-weight: 700;
    color: #111217;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern .tm-sub {
    font-size: 11px;
    color: #9299a6;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern .tm-sub--pending {
    color: #5c9e2e;
    font-weight: 800;
}

/* ── Member right: role chip / select + remove btn ── */
body.sb-modern .tm-member-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Role chips */
body.sb-modern .tm-role-chip {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

body.sb-modern .tm-role-chip--owner {
    background: rgba(168,231,106,.28);
    color: #3a6e1a;
}

body.sb-modern .tm-role-chip--admin {
    background: rgba(124,110,219,.14);
    color: #5b4fcf;
}

body.sb-modern .tm-role-chip--analyst {
    background: rgba(14,165,233,.12);
    color: #0778b0;
}

body.sb-modern .tm-role-chip--viewer {
    background: rgba(17,18,23,.07);
    color: #666d79;
}

/* Role select (for invited members) */
body.sb-modern .tm-role-select {
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid rgba(17,18,23,.1);
    background: rgba(17,18,23,.04);
    color: #555b66;
    font-family: 'Onest', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: border-color .15s, background .15s;
}

body.sb-modern .tm-role-select:hover {
    border-color: rgba(17,18,23,.2);
    background: rgba(17,18,23,.08);
    color: #111217;
}

/* Remove button — dark circle like reference */
body.sb-modern .tm-remove-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background: #111217;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s, transform .15s;
    flex-shrink: 0;
}

body.sb-modern .tm-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.08);
}

/* Add button (for + rows in future) */
body.sb-modern .tm-add-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background: rgba(17,18,23,.08);
    color: #555b66;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

body.sb-modern .tm-add-btn:hover {
    background: #A8E76A;
    color: #111217;
}

/* ── Invite slot ── */
body.sb-modern .tm-invite-slot {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 18px 9px 18px;
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-top: 1px solid rgba(17,18,23,.05);
    transition: background .15s;
}

body.sb-modern .tm-invite-slot:hover {
    background: rgba(17,18,23,.03);
}

body.sb-modern .tm-invite-plus {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px dashed rgba(17,18,23,.18);
    display: grid;
    place-items: center;
    color: #9299a6;
    flex-shrink: 0;
    transition: border-color .15s, color .15s, background .15s;
}

body.sb-modern .tm-invite-slot:hover .tm-invite-plus {
    border-color: #A8E76A;
    background: rgba(168,231,106,.12);
    color: #3a6e1a;
}

body.sb-modern .tm-invite-slot-text {
    font-size: 12.5px;
    font-weight: 600;
    color: #9299a6;
    transition: color .15s;
}

body.sb-modern .tm-invite-slot:hover .tm-invite-slot-text {
    color: #555b66;
}

body.sb-modern .tm-invite-slot:disabled {
    cursor: not-allowed;
}

body.sb-modern .tm-invite-slot:disabled:hover {
    background: transparent;
}

body.sb-modern .tm-invite-slot:disabled:hover .tm-invite-plus {
    border-color: rgba(17,18,23,.18);
    background: transparent;
    color: #9299a6;
}

body.sb-modern .tm-invite-slot:disabled:hover .tm-invite-slot-text {
    color: #9299a6;
}

/* ── Status dots ── */
body.sb-modern .tm-sub--owner {
    color: #5c9e2e;
    font-weight: 800;
}

body.sb-modern .tm-sub--online::before,
body.sb-modern .tm-sub--offline::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}
body.sb-modern .tm-sub--online::before {
    background: #a8e76a;
    box-shadow: 0 0 5px rgba(168,231,106,.6);
}
body.sb-modern .tm-sub--offline::before {
    background: #b0b0b0;
}

/* ── "Вы" tag ── */
body.sb-modern .tm-you-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 900;
    background: rgba(168,231,106,.22);
    color: #3a6e1a;
    border-radius: 999px;
    padding: 1px 7px;
    margin-left: 5px;
    vertical-align: middle;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ── Sparkline ── */
body.sb-modern .tm-spark {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
    flex-shrink: 0;
    cursor: default;
}

body.sb-modern .tm-spark span {
    width: 3px;
    height: var(--h, 50%);
    border-radius: 2px;
    background: rgba(17,18,23,.13);
    transition: background .2s;
}

body.sb-modern .tm-spark--active span:nth-last-child(1),
body.sb-modern .tm-spark--active span:nth-last-child(2) {
    background: #a8e76a;
}

body.sb-modern .tm-spark::after {
    content: attr(data-activity);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    min-width: 38px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #111217;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    box-shadow: 0 8px 18px rgba(17,18,23,.18);
    z-index: 4;
}

body.sb-modern .tm-spark::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: #111217;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    z-index: 4;
}

body.sb-modern .tm-spark:hover::after,
body.sb-modern .tm-spark:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

body.sb-modern .tm-spark-tip {
    position: fixed;
    transform: translate(-50%, -100%) translateY(-6px);
    min-width: 96px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #111217;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    box-shadow: 0 8px 18px rgba(17,18,23,.18);
    z-index: 10000;
}

body.sb-modern .tm-spark-tip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #111217;
}

body.sb-modern .tm-spark-tip--show {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(0);
}

/* ── Avatar as img ── */
body.sb-modern .tm-av img,
body.sb-modern img.tm-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ── Footer ── */
body.sb-modern .tm-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-top: 1px solid rgba(17,18,23,.06);
}

body.sb-modern .tm-foot-label {
    font-size: 12px;
    font-weight: 700;
    color: #9299a6;
}

body.sb-modern .tm-foot-arrows {
    display: flex;
    align-items: center;
    gap: 4px;
}

body.sb-modern .tm-foot-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 0;
    background: rgba(17,18,23,.06);
    color: #8d919d;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s, color .15s;
}

body.sb-modern .tm-foot-arrow:hover {
    background: rgba(17,18,23,.12);
    color: #111217;
}

body.sb-modern .tm-foot-arrow--active,
body.sb-modern .tm-foot-arrow--active:hover {
    background: #111217;
    color: #fff;
}

/* ── Team engagement graph ── */
body.sb-modern .tm-engage-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(22px);
    transform-origin: center right;
    transition: max-height .36s cubic-bezier(.2,.8,.2,1), opacity .24s ease, transform .32s cubic-bezier(.2,.8,.2,1);
    border-top: 0;
    background: #fff;
}

body.sb-modern .tm-engage-panel--open {
    max-height: 430px;
    opacity: 1;
    transform: translateX(0);
}

body.sb-modern .tm-engage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 4px;
}

body.sb-modern .tm-engage-kicker {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8d919d;
}

body.sb-modern .tm-engage-title {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 900;
    color: #111217;
}

body.sb-modern .tm-engage-graph {
    position: relative;
    height: 194px;
    margin: 0 16px 10px;
    border-radius: 20px;
    background:
        radial-gradient(circle at center, rgba(168,231,106,.16), transparent 56%),
        #f7f8f5;
    border: 1px solid rgba(17,18,23,.055);
    overflow: hidden;
}

body.sb-modern .tm-engage-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    align-content: center;
    background: conic-gradient(#A8E76A var(--avg, 60%), rgba(17,18,23,.09) 0);
    box-shadow: 0 14px 30px rgba(17,18,23,.14);
    animation: tmEngageCenterIn .3s cubic-bezier(.2,.8,.2,1) forwards;
}

body.sb-modern .tm-engage-center::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #111217;
}

body.sb-modern .tm-engage-center strong,
body.sb-modern .tm-engage-center span {
    position: relative;
    z-index: 1;
}

body.sb-modern .tm-engage-center strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

body.sb-modern .tm-engage-center span {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 900;
    color: #A8E76A;
    text-transform: uppercase;
    letter-spacing: .06em;
}

body.sb-modern .tm-engage-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 58px;
    transform: translate(-50%, -50%);
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 3px;
    animation: tmEngageDotIn .28s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: calc(var(--i, 0) * 42ms);
    opacity: 0;
}

body.sb-modern .tm-engage-dot span {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--c, #A8E76A) var(--p, 60%), rgba(17,18,23,.12) 0);
    box-shadow: 0 8px 16px rgba(17,18,23,.12);
}

body.sb-modern .tm-engage-dot span::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
}

body.sb-modern .tm-engage-dot b {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--c, #A8E76A);
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: 10px;
    font-weight: 900;
}

body.sb-modern .tm-engage-dot em {
    font-style: normal;
    font-size: 10px;
    font-weight: 900;
    color: #111217;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(17,18,23,.06);
    border-radius: 999px;
    padding: 1px 5px;
}

body.sb-modern .tm-engage-caption {
    margin: 0 16px 14px;
    padding: 9px 11px;
    border-radius: 13px;
    background: rgba(168,231,106,.14);
    color: #3a6e1a;
    font-size: 11px;
    font-weight: 800;
}

@keyframes tmEngageCenterIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.86);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes tmEngageDotIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.7);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ══ Invite modal ══ */
body.sb-modern .tm-modal-bg {
    display: none;
}

body.sb-modern .tm-modal-bg--open {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(17,18,23,.42);
    backdrop-filter: blur(6px);
    animation: tmModalFadeIn .2s ease;
}

@keyframes tmModalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

body.sb-modern .tm-modal-bg .tm-invite-modal,
body.sb-modern .tm-modal-bg .tm-verify-modal {
    position: relative;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-radius: 26px;
    border: 1px solid rgba(17,18,23,.08);
    box-shadow: 0 32px 80px rgba(17,18,23,.22);
    animation: tmModalSlideIn .22s ease forwards;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: block;
}

@keyframes tmModalSlideIn {
    from { transform: translateY(14px) scale(.96); opacity: 0; }
    to   { transform: translateY(0) scale(1);       opacity: 1; }
}

body.sb-modern .tm-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(17,18,23,.07);
    border-radius: 26px 26px 0 0;
}

body.sb-modern .tm-modal-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #111217;
}

body.sb-modern .tm-modal-sub {
    font-size: 12px;
    color: #8d919d;
    margin-top: 4px;
}

body.sb-modern .tm-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: rgba(17,18,23,.06);
    color: #8d919d;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}

body.sb-modern .tm-modal-close:hover {
    background: rgba(17,18,23,.1);
    color: #111217;
}

body.sb-modern .tm-modal-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.sb-modern .tm-modal-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

body.sb-modern .tm-modal-field label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9299a6;
}

body.sb-modern .tm-modal-input {
    width: 100%;
    background: #f7f7f6;
    border: 1px solid rgba(17,18,23,.08);
    border-radius: 14px;
    color: #111217;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    padding: 11px 14px;
    min-height: 46px;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

body.sb-modern .tm-modal-input:focus {
    background: #fff;
    border-color: rgba(168,231,106,.85);
    box-shadow: 0 0 0 3px rgba(168,231,106,.18);
}

body.sb-modern .tm-modal-input::placeholder { color: rgba(17,18,23,.28); }

/* ── Custom role dropdown ── */
body.sb-modern .tm-dropdown {
    position: relative;
}
body.sb-modern .tm-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    background: #f7f7f6;
    border: 1px solid rgba(17,18,23,.08);
    border-radius: 14px;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    color: #111217;
    cursor: pointer;
    text-align: left;
    min-height: 46px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
body.sb-modern .tm-dropdown-trigger:hover {
    background: #fff;
    border-color: rgba(168,231,106,.6);
}
body.sb-modern .tm-dropdown--open .tm-dropdown-trigger {
    background: #fff;
    border-color: rgba(168,231,106,.85);
    box-shadow: 0 0 0 3px rgba(168,231,106,.18);
}
body.sb-modern .tm-dropdown-chevron {
    flex-shrink: 0;
    color: #8d919d;
    transition: transform .18s;
}
body.sb-modern .tm-dropdown--open .tm-dropdown-chevron {
    transform: rotate(180deg);
}
body.sb-modern .tm-dropdown-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid rgba(17,18,23,.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(17,18,23,.12);
    overflow: hidden;
    z-index: 200;
    padding: 6px;
    list-style: none;
    margin: 0;
}
body.sb-modern .tm-dropdown--open .tm-dropdown-list { display: block; }
body.sb-modern .tm-dropdown-item {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: #111217;
    cursor: pointer;
    list-style: none;
    transition: background .12s;
}
body.sb-modern .tm-dropdown-item:hover { background: rgba(168,231,106,.18); }
body.sb-modern .tm-dropdown-item--sel {
    background: rgba(168,231,106,.14);
    font-weight: 600;
    color: #2d5a1b;
}

/* ── Site selection list ── */
body.sb-modern .tm-site-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
body.sb-modern .tm-site-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid rgba(17,18,23,.08);
    border-radius: 14px;
    cursor: pointer;
    background: rgba(17,18,23,.02);
    user-select: none;
    transition: border-color .15s, background .15s;
}
body.sb-modern .tm-site-item:hover {
    border-color: rgba(168,231,106,.5);
    background: rgba(168,231,106,.05);
}
body.sb-modern .tm-site-item--sel {
    border-color: #A8E76A;
    background: rgba(168,231,106,.09);
}
body.sb-modern .tm-site-ico {
    color: #adb3bd;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
body.sb-modern .tm-site-item--sel .tm-site-ico { color: #315d20; }
body.sb-modern .tm-site-domain {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #111217;
}
body.sb-modern .tm-site-check {
    color: #5fba2a;
    display: none;
    align-items: center;
}
body.sb-modern .tm-site-item--sel .tm-site-check { display: flex; }
body.sb-modern .tm-site-empty {
    font-size: 13px;
    color: #8d919d;
    padding: 12px 14px;
    text-align: center;
    border: 1.5px dashed rgba(17,18,23,.12);
    border-radius: 14px;
}

body.sb-modern .tm-modal-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 22px 20px;
    border-top: 1px solid rgba(17,18,23,.07);
    border-radius: 0 0 26px 26px;
}

body.sb-modern .tm-modal-cancel {
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    background: rgba(17,18,23,.06);
    color: #555b66;
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s;
}

body.sb-modern .tm-modal-cancel:hover {
    background: rgba(17,18,23,.1);
    color: #111217;
}

body.sb-modern .tm-modal-send {
    height: 38px;
    padding: 0 20px;
    border-radius: 999px;
    border: 0;
    background: #111217;
    color: #fff;
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}

body.sb-modern .tm-modal-send:hover {
    opacity: .88;
    transform: translateY(-1px);
}

/* ── Compact subscription strip (modern sidebar only) ── */
body.sb-modern #page-profile .pcard-sub-summary {
    background: #fff;
    border-radius: 26px;
}

body.sb-modern #page-profile .pcard-sub-summary .pcard-head,
body.sb-modern #page-profile .pcard-sub-summary .pcard-body {
    display: none;
}

body.sb-modern #page-profile .sub-compact-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 18px;
    flex-wrap: wrap;
    min-height: 72px;
}

body.sb-modern #page-profile .sub-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111217;
    color: #a8e76a;
    border-radius: 999px;
    padding: 8px 16px;
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

body.sb-modern #page-profile .sub-plan-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a8e76a;
    box-shadow: 0 0 6px rgba(168,231,106,.8);
    flex-shrink: 0;
}

body.sb-modern #page-profile .sub-vsep {
    width: 1px;
    height: 28px;
    background: rgba(17,18,23,.08);
    flex-shrink: 0;
    margin: 0 10px;
}

body.sb-modern #page-profile .sub-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

body.sb-modern #page-profile .sub-meta-lbl {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9299a6;
}

body.sb-modern #page-profile .sub-owner-label {
    flex: 0 0 100%;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9299a6;
    margin: 2px 0 6px;
}

body.sb-modern #page-profile .sub-meta-val {
    font-size: 14px;
    font-weight: 800;
    color: #111217;
    white-space: nowrap;
}

body.sb-modern #page-profile .sub-meta-val.pstat-val--danger {
    color: #dc2626;
}

body.sb-modern #page-profile .sub-spacer {
    flex: 1;
    min-width: 8px;
}

body.sb-modern #page-profile .sub-cancel-btn {
    background: transparent;
    border: 0;
    color: #9299a6;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .15s, background .15s;
    white-space: nowrap;
}

body.sb-modern #page-profile .sub-cancel-btn:hover {
    background: rgba(17,18,23,.06);
    color: #111217;
}

body.sb-modern #page-profile .sub-renew-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #111217;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 20px;
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
    white-space: nowrap;
    flex-shrink: 0;
}

body.sb-modern #page-profile .sub-renew-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

@media (max-width: 860px) {
    body.sb-modern #page-profile .sub-compact-row {
        gap: 0;
        row-gap: 10px;
    }
    body.sb-modern #page-profile .sub-vsep {
        display: none;
    }
    body.sb-modern #page-profile .sub-meta {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        background: #f7f7f6;
        border-radius: 12px;
        padding: 6px 10px;
        margin-right: 6px;
    }
    body.sb-modern #page-profile .sub-meta-lbl {
        color: #9299a6;
    }
    body.sb-modern #page-profile .sub-spacer {
        width: 100%;
        height: 0;
        flex-basis: 100%;
    }
}

/* ══════════════════════════════════════════════════════════
   MODERN SECURITY PAGE — sb-modern only
   ══════════════════════════════════════════════════════════ */

/* ── Overview strip ── */
body.sb-modern #page-profile .sec-overview {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-radius: 28px;
    padding: 16px 22px;
    margin-bottom: 16px;
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.04);
    flex-wrap: wrap;
    row-gap: 14px;
}

body.sb-modern #page-profile .sec-ov-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.sb-modern #page-profile .sec-ov-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #a8e76a;
    display: grid;
    place-items: center;
    color: #111217;
    flex-shrink: 0;
}

body.sb-modern #page-profile .sec-ov-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #9299a6;
}

body.sb-modern #page-profile .sec-ov-val {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #111217;
    margin-top: 3px;
    letter-spacing: -.01em;
}

body.sb-modern #page-profile .sec-ov-sep {
    width: 1px;
    height: 32px;
    background: rgba(17,18,23,.08);
    flex-shrink: 0;
    margin: 0 22px;
}

/* ── Two-column grid ── */
body.sb-modern #page-profile .sec-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 16px;
    margin-bottom: 16px;
    align-items: start;
}

/* ── Lock icon in pcard-head ── */
body.sb-modern #page-profile .sec-lock-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #f7f7f6;
    display: grid;
    place-items: center;
    color: #111217;
    flex-shrink: 0;
}

/* ── Input with eye button ── */
body.sb-modern #page-profile .sec-inp-row {
    position: relative;
}

body.sb-modern #page-profile .sec-inp-row .pinput {
    padding-right: 48px;
}

body.sb-modern #page-profile .sec-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: #9299a6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
    flex-shrink: 0;
}

body.sb-modern #page-profile .sec-eye:hover {
    background: rgba(17,18,23,.07);
    color: #111217;
}

/* ── Password strength ── */
body.sb-modern #page-profile .sec-strength-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 0 2px;
}

body.sb-modern #page-profile .sec-strength-track {
    flex: 1;
    height: 4px;
    background: rgba(17,18,23,.08);
    border-radius: 999px;
    overflow: hidden;
}

body.sb-modern #page-profile .sec-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width .3s ease, background .3s ease;
}

body.sb-modern #page-profile .sec-strength-text {
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    min-width: 64px;
    text-align: right;
    transition: color .3s ease;
}

/* ── Error message ── */
body.sb-modern #page-profile .sec-error-msg {
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* ── Refresh button ── */
body.sb-modern #page-profile .sec-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f7f7f6;
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #555b66;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
    flex-shrink: 0;
}

body.sb-modern #page-profile .sec-refresh-btn:hover {
    background: #ebebea;
    color: #111217;
}

/* ── Session items ── */
body.sb-modern #page-profile .sec-loading {
    color: #9299a6;
    font-size: 13px;
    padding: 4px 0;
}

body.sb-modern #page-profile .sec-sess-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 20px;
    background: #f7f7f6;
    transition: background .15s;
}

body.sb-modern #page-profile .sec-sess-item--current {
    background: rgba(168,231,106,.16);
}

body.sb-modern #page-profile .sec-sess-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff;
    display: grid;
    place-items: center;
    color: #111217;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.08);
}

body.sb-modern #page-profile .sec-sess-info {
    flex: 1;
    min-width: 0;
}

body.sb-modern #page-profile .sec-sess-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #111217;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern #page-profile .sec-sess-meta {
    font-size: 12px;
    color: #9299a6;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern #page-profile .sec-sess-chip {
    background: #a8e76a;
    color: #111217;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    flex-shrink: 0;
}

body.sb-modern #page-profile .sec-sess-revoke {
    background: rgba(17,18,23,.07);
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #555b66;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}

body.sb-modern #page-profile .sec-sess-revoke:hover {
    background: rgba(220,38,38,.1);
    color: #dc2626;
}

/* ── Danger zone row ── */
body.sb-modern #page-profile .sec-danger-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
}

body.sb-modern #page-profile .sec-danger-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(220,38,38,.08);
    color: #dc2626;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

body.sb-modern #page-profile .sec-danger-text {
    flex: 1;
    min-width: 0;
}

body.sb-modern #page-profile .sec-danger-title {
    font-size: 14px;
    font-weight: 900;
    color: #111217;
}

body.sb-modern #page-profile .sec-danger-desc {
    font-size: 12px;
    color: #9299a6;
    margin-top: 3px;
}

body.sb-modern #page-profile .sec-danger-btn {
    background: rgba(220,38,38,.1);
    border: 0;
    border-radius: 999px;
    padding: 10px 22px;
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #dc2626;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s;
}

body.sb-modern #page-profile .sec-danger-btn:hover {
    background: rgba(220,38,38,.18);
}

/* ── Delete account modal ── */
body.sb-modern .sec-del-modal {
    background: #fff;
    border-radius: 28px;
    padding: 32px;
    max-width: 420px;
    width: 92%;
    box-shadow: 0 28px 80px rgba(17,18,23,.18), inset 0 0 0 1px rgba(17,18,23,.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.sb-modern .sec-del-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    background: rgba(220,38,38,.1);
    color: #dc2626;
    display: grid;
    place-items: center;
}

body.sb-modern .sec-del-modal-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #111217;
    letter-spacing: -.02em;
    margin-top: 2px;
}

body.sb-modern .sec-del-modal-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

body.sb-modern .sec-del-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

body.sb-modern .sec-del-confirm-btn {
    flex: 1;
    height: 46px;
    background: #dc2626;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity .15s;
}

body.sb-modern .sec-del-confirm-btn:hover {
    opacity: .88;
}

body.sb-modern .sec-del-cancel-btn {
    flex: 1;
    height: 46px;
    background: #f4f4f3;
    border: 0;
    border-radius: 999px;
    color: #555b66;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s;
}

body.sb-modern .sec-del-cancel-btn:hover {
    background: #ebebea;
    color: #111217;
}

/* ── Responsive ── */
@media (max-width: 980px) {
    body.sb-modern #page-profile .sec-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    body.sb-modern #page-profile .sec-overview {
        padding: 14px 16px;
    }

    body.sb-modern #page-profile .sec-ov-sep {
        display: none;
    }

    body.sb-modern #page-profile .sec-ov-item {
        min-width: 130px;
    }

    body.sb-modern #page-profile .sec-danger-row {
        flex-wrap: wrap;
    }

    body.sb-modern #page-profile .sec-danger-btn {
        width: 100%;
        text-align: center;
    }
}

/* ══════════════════════════════════════════════════════════
   MULTI-ACCOUNT / TEAM SYSTEM — v1
   ══════════════════════════════════════════════════════════ */

/* ── prx-tabbar: tab badges & team tab ── */
body.sb-modern .prx-tabbar {
    display: flex;
    gap: 4px;
    /* background: #fff; */
    border-radius: 1px;
    padding: 6px;
    margin-bottom: 14px;
    /* box-shadow: inset 0 0 0 1px rgba(17,18,23,.05); */
    overflow-x: auto;
    scrollbar-width: none;
}

body.sb-modern .prx-tabbar::-webkit-scrollbar { display: none; }

body.sb-modern .prx-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #666d79;
    font-family: 'Onest', sans-serif;
    font-size: 12.5px;
    font-weight: 900;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

body.sb-modern .prx-tab:hover {
    color: var(--prx-ink);
    background: transparent;
}

/* body.sb-modern .prx-tab.active {
    background: #111217;
    color: #fff;
}

body.sb-modern .prx-tab.active:hover {
    background: #111217;
} */

body.sb-modern .prx-tab-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #a8e76a;
    color: #111217;
    font-size: 10px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

body.sb-modern .prx-tab.active .prx-tab-badge {
    background: rgba(168,231,106,.9);
    color: #111217;
}

/* ── Team tab: wrapper ── */
body.sb-modern .ttab-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Header ── */
body.sb-modern .ttab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: #fff;
    border-radius: 26px;
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.05);
}

body.sb-modern .ttab-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #111217;
    letter-spacing: -.01em;
    margin: 0;
}

body.sb-modern .ttab-sub {
    font-size: 12.5px;
    color: #8e95a2;
    margin-top: 4px;
}

body.sb-modern .ttab-invite-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: #111217;
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s, transform .15s;
    flex-shrink: 0;
}

body.sb-modern .ttab-invite-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

body.sb-modern .ttab-invite-btn:disabled {
    background: #d8dade;
    color: #9299a6;
    cursor: not-allowed;
}

body.sb-modern .ttab-invite-btn:disabled:hover {
    opacity: 1;
    transform: none;
}

/* ── Member row: clickable (opens permissions modal) ── */
body.sb-modern .ttab-member--clickable {
    cursor: pointer;
    transition: background .15s;
}

body.sb-modern .ttab-member--clickable:hover {
    background: rgba(17,18,23,.025);
}

/* ── Permissions modal («Права доступа») ── */
body.sb-modern .tperm-modal-bg {
    display: none;
}

body.sb-modern .tperm-modal-bg--open {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(17,18,23,.42);
    backdrop-filter: blur(6px);
    animation: tmModalFadeIn .2s ease;
}

body.sb-modern .tperm-modal {
    position: relative;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-radius: 26px;
    border: 1px solid rgba(17,18,23,.08);
    box-shadow: 0 32px 80px rgba(17,18,23,.22);
    animation: tmModalSlideIn .22s ease forwards;
    display: block;
}

body.sb-modern .tperm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px 18px;
    background: linear-gradient(135deg, rgba(168,231,106,.16), rgba(255,255,255,0) 60%);
    border-bottom: 1px solid rgba(17,18,23,.07);
}

body.sb-modern .tperm-head-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.sb-modern .tperm-ava {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px rgba(168,231,106,.5);
}

body.sb-modern .tperm-ava img,
body.sb-modern .tperm-ava .ttab-av {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

body.sb-modern .tperm-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #111217;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern .tperm-sub {
    font-size: 12px;
    color: #8d919d;
    margin-top: 3px;
}

body.sb-modern .tperm-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: rgba(17,18,23,.06);
    color: #8d919d;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}

body.sb-modern .tperm-close:hover {
    background: rgba(17,18,23,.1);
    color: #111217;
}

body.sb-modern .tperm-presets-wrap {
    padding: 16px 22px 0;
}

body.sb-modern .tperm-presets-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #b3b8c1;
    margin-bottom: 8px;
}

body.sb-modern .tperm-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

body.sb-modern .tperm-preset-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: #fafaf9;
    border: 1.5px solid rgba(17,18,23,.07);
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}

body.sb-modern .tperm-preset-card:hover {
    background: #fff;
    border-color: rgba(168,231,106,.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(17,18,23,.07);
}

body.sb-modern .tperm-preset-ico {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

body.sb-modern .tperm-preset-ico--sales    { background: #eff6ff; color: #1d4ed8; }
body.sb-modern .tperm-preset-ico--finance  { background: #fff7ed; color: #c2410c; }
body.sb-modern .tperm-preset-ico--observer { background: #f5f3ff; color: #6d28d9; }

body.sb-modern .tperm-preset-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.sb-modern .tperm-preset-text b {
    font-size: 12px;
    font-weight: 800;
    color: #111217;
    line-height: 1.25;
}

body.sb-modern .tperm-preset-text small {
    font-size: 10.5px;
    line-height: 1.35;
    color: #9299a6;
}

body.sb-modern .tperm-hint {
    padding: 16px 22px 4px;
    font-size: 12px;
    line-height: 1.5;
    color: #8d919d;
}

body.sb-modern .tperm-hint span {
    color: #555b66;
    font-weight: 600;
}

body.sb-modern .tperm-list {
    padding: 4px 22px 4px;
    display: flex;
    flex-direction: column;
}

body.sb-modern .tperm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(17,18,23,.05);
}

body.sb-modern .tperm-row:last-child {
    border-bottom: 0;
}

body.sb-modern .tperm-row-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #111217;
}

/* Сегмент-контрол «Полный / Чтение / Нет» — единая пилюля с тремя опциями,
   активная подсвечивается заливкой, а не отдельная точка-индикатор рядом. */
body.sb-modern .tperm-seg {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    background: #f0f0ef;
    border-radius: 999px;
    padding: 2px;
}

body.sb-modern .tperm-seg-btn {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 5px 10px;
    font-family: 'Onest', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #9299a6;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

body.sb-modern .tperm-seg-btn:hover {
    color: #555b66;
}

body.sb-modern .tperm-seg-btn--full.is-active { background: #22c55e; color: #fff; }
body.sb-modern .tperm-seg-btn--view.is-active { background: #3b82f6; color: #fff; }
body.sb-modern .tperm-seg-btn--none.is-active { background: #fff; color: #6b7280; box-shadow: 0 1px 3px rgba(17,18,23,.15); }

/* Заблокированные разделы (team_locked_capabilities()) — уровень всегда по
   должности, менять нельзя ни в UI, ни на сервере. */
body.sb-modern .tperm-row--locked .tperm-seg-btn {
    cursor: not-allowed;
    opacity: .55;
}
body.sb-modern .tperm-row-lock {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    color: #9299a6;
    vertical-align: -2px;
}

body.sb-modern .tperm-loading {
    padding: 18px 0;
    font-size: 13px;
    color: #8d919d;
    text-align: center;
}

body.sb-modern .tperm-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 22px;
}

body.sb-modern .tperm-reset-btn {
    background: none;
    border: 0;
    padding: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #8d919d;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s;
}

body.sb-modern .tperm-reset-btn:hover {
    color: #e05d5d;
}

body.sb-modern .tperm-save-btn {
    margin-left: auto;
    padding: 10px 22px;
    background: #111217;
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity .15s;
}

body.sb-modern .tperm-save-btn:hover {
    opacity: .88;
}

/* ── Link card ── */
body.sb-modern .ttab-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(168,231,106,.1);
    border: 1.5px solid rgba(168,231,106,.35);
    border-radius: 22px;
    flex-wrap: wrap;
}

body.sb-modern .ttab-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #a8e76a;
    color: #111217;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

body.sb-modern .ttab-link-info {
    flex: 1;
    min-width: 0;
}

body.sb-modern .ttab-link-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #3a6e1a;
    margin-bottom: 4px;
}

body.sb-modern .ttab-link-url {
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111217;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern .ttab-link-meta {
    font-size: 11px;
    color: #8e95a2;
    margin-top: 3px;
}

body.sb-modern .ttab-link-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

body.sb-modern .ttab-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(17,18,23,.08);
    color: #555b66;
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

body.sb-modern .ttab-link-btn:hover {
    background: rgba(17,18,23,.14);
    color: #111217;
}

body.sb-modern .ttab-link-btn--copy {
    background: #111217;
    color: #fff;
}

body.sb-modern .ttab-link-btn--copy:hover {
    opacity: .85;
    background: #111217;
    color: #fff;
}

body.sb-modern .ttab-link-btn--copied {
    background: #a8e76a !important;
    color: #111217 !important;
}

/* ── Team operations analytics ── */
body.sb-modern .ttab-ops {
    padding: 22px;
    background: #fff;
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.05);
}

body.sb-modern .ttab-ops-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

body.sb-modern .ttab-kicker {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64ad37;
    margin-bottom: 7px;
}

body.sb-modern .ttab-ops-title {
    margin: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 900;
    color: #111217;
}

body.sb-modern .ttab-ops-sub {
    max-width: 660px;
    margin-top: 8px;
    color: #8e95a2;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

body.sb-modern .ttab-dir-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

body.sb-modern .ttab-dir-tab {
    height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    background: #f4f4f3;
    color: #7f8692;
    font-family: 'Onest', sans-serif;
    font-size: 12.5px;
    font-weight: 900;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
}

body.sb-modern .ttab-dir-tab:hover {
    color: #111217;
    transform: translateY(-1px);
}

body.sb-modern .ttab-dir-tab.is-active {
    background: #111217;
    color: #fff;
}

body.sb-modern .ttab-dir-panel {
    display: none;
}

body.sb-modern .ttab-dir-panel.is-active {
    display: block;
}

body.sb-modern .ttab-dir-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(168,231,106,.24), rgba(255,255,255,.95) 56%, rgba(168,231,106,.12));
    border: 1px solid rgba(100,173,55,.16);
}

body.sb-modern .ttab-dir-name {
    font-size: 20px;
    font-weight: 900;
    color: #111217;
}

body.sb-modern .ttab-dir-sub,
body.sb-modern .ttab-dir-note {
    margin-top: 4px;
    color: #8e95a2;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

body.sb-modern .ttab-dir-note {
    max-width: 380px;
    text-align: right;
}

body.sb-modern .ttab-metric-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

body.sb-modern .ttab-metric {
    min-height: 86px;
    padding: 14px;
    border-radius: 20px;
    background: #f7f7f5;
    border: 1px solid rgba(17,18,23,.05);
}

body.sb-modern .ttab-metric span {
    display: block;
    color: #8e95a2;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body.sb-modern .ttab-metric strong {
    display: block;
    margin-top: 12px;
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: 25px;
    line-height: 1;
}

body.sb-modern .ttab-metric--risk strong {
    color: #b45309;
}

body.sb-modern .ttab-work-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 14px;
}

body.sb-modern .ttab-work-card {
    min-width: 0;
    padding: 18px;
    border-radius: 24px;
    background: #fafaf9;
    border: 1px solid rgba(17,18,23,.06);
}

body.sb-modern .ttab-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

body.sb-modern .ttab-card-title {
    color: #111217;
    font-size: 14px;
    font-weight: 900;
}

body.sb-modern .ttab-card-sub {
    margin-top: 3px;
    color: #9aa0ab;
    font-size: 12px;
    font-weight: 800;
}

body.sb-modern .ttab-people-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.sb-modern .ttab-person-row {
    display: grid;
    grid-template-columns: minmax(132px, 1.1fr) minmax(150px, 1.4fr) repeat(3, minmax(76px, .55fr)) repeat(2, minmax(82px, .65fr));
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(17,18,23,.05);
}

body.sb-modern .ttab-person-name {
    color: #111217;
    font-size: 14px;
    font-weight: 900;
}

body.sb-modern .ttab-person-role {
    margin-top: 3px;
    color: #8e95a2;
    font-size: 12px;
    font-weight: 800;
}

body.sb-modern .ttab-engagement-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    color: #8e95a2;
    font-size: 11px;
    font-weight: 900;
}

body.sb-modern .ttab-engagement-top strong {
    color: #111217;
}

body.sb-modern .ttab-engagement-track {
    height: 9px;
    border-radius: 999px;
    background: #ececea;
    overflow: hidden;
}

body.sb-modern .ttab-engagement-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a8e76a, #64ad37);
}

body.sb-modern .ttab-row-stat strong,
body.sb-modern .ttab-row-time span {
    display: block;
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    line-height: 1;
}

body.sb-modern .ttab-row-stat span,
body.sb-modern .ttab-row-time small {
    display: block;
    margin-top: 5px;
    color: #9aa0ab;
    font-size: 10.5px;
    font-weight: 900;
    text-transform: uppercase;
}

body.sb-modern .ttab-row-stat--risk strong {
    color: #b45309;
}

body.sb-modern .ttab-work-card--focus {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: linear-gradient(135deg, rgba(168,231,106,.28), #fff 58%);
    color: #111217;
    overflow: hidden;
    position: relative;
}

body.sb-modern .ttab-work-card--focus .ttab-card-title,
body.sb-modern .ttab-focus-name,
body.sb-modern .ttab-focus-score,
body.sb-modern .ttab-focus-copy,
body.sb-modern .ttab-focus-list {
    position: relative;
    z-index: 1;
}

body.sb-modern .ttab-work-card--focus .ttab-card-title {
    color: #4b7e2e;
}

body.sb-modern .ttab-focus-name {
    margin-top: 26px;
    color: #111217;
    font-size: 20px;
    font-weight: 900;
}

body.sb-modern .ttab-focus-score {
    margin-top: 10px;
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: 54px;
    line-height: 1;
}

body.sb-modern .ttab-focus-copy {
    margin-top: 4px;
    color: #7f8692;
    font-size: 12px;
    font-weight: 800;
}

body.sb-modern .ttab-focus-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 26px;
}

body.sb-modern .ttab-focus-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(17,18,23,.08);
}

body.sb-modern .ttab-focus-list span {
    color: #8e95a2;
    font-size: 12px;
    font-weight: 800;
}

body.sb-modern .ttab-focus-list strong {
    color: #4b7e2e;
    font-size: 14px;
    font-weight: 900;
}

/* ── Section ── */
body.sb-modern .ttab-section {
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.05);
}

body.sb-modern .ttab-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px 12px;
    border-bottom: 1px solid rgba(17,18,23,.07);
}

body.sb-modern .ttab-section-title {
    font-size: 13px;
    font-weight: 900;
    color: #111217;
    letter-spacing: -.01em;
}

body.sb-modern .ttab-distribute-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: transparent;
    color: #555b66;
    border: 1.5px solid rgba(17,18,23,.14);
    border-radius: 999px;
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s;
}

body.sb-modern .ttab-distribute-btn:hover {
    border-color: #A8E76A;
    background: rgba(168,231,106,.12);
    color: #111217;
}

body.sb-modern .ttab-distribute-btn:disabled {
    opacity: .5;
    cursor: default;
    border-color: rgba(17,18,23,.14);
    background: transparent;
    color: #555b66;
}

body.sb-modern .ttab-section-count {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: #f4f4f3;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    color: #8e95a2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.sb-modern .ttab-section-count--orange {
    background: rgba(234,88,12,.1);
    color: #ea580c;
}

/* ── Member row ── */
body.sb-modern .ttab-members,
body.sb-modern .ttab-pending-list {
    display: flex;
    flex-direction: column;
}

body.sb-modern .ttab-member {
    display: grid;
    grid-template-columns: 44px 1fr auto auto auto;
    align-items: center;
    gap: 0 12px;
    padding: 13px 22px;
    transition: background .12s;
}

body.sb-modern .ttab-member:not(:last-child) {
    border-bottom: 1px solid rgba(17,18,23,.06);
}

body.sb-modern .ttab-member:hover {
    background: #fafaf9;
}

body.sb-modern .ttab-av {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 900;
    overflow: hidden;
    flex-shrink: 0;
    object-fit: cover;
}

body.sb-modern .ttab-member-info {
    min-width: 0;
}

body.sb-modern .ttab-member-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #111217;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern .ttab-member-email {
    font-size: 12px;
    color: #8e95a2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern .ttab-you-tag {
    font-size: 10px;
    font-weight: 900;
    background: rgba(168,231,106,.25);
    color: #2d5a1b;
    border-radius: 999px;
    padding: 2px 8px;
    flex-shrink: 0;
}

body.sb-modern .ttab-role-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

body.sb-modern .ttab-role-badge--owner {
    background: #111217;
    color: #a8e76a;
}

body.sb-modern .ttab-role-badge--member {
    background: #f4f4f3;
    color: #555b66;
}

body.sb-modern .ttab-role-badge--pending {
    background: rgba(234,88,12,.1);
    color: #c2410c;
}

/* ── Online status ── */
body.sb-modern .ttab-member-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

body.sb-modern .ttab-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

body.sb-modern .ttab-online-dot--on {
    background: #a8e76a;
    box-shadow: 0 0 0 2px rgba(168,231,106,.3);
}

body.sb-modern .ttab-online-dot--off {
    background: rgba(17,18,23,.18);
}

body.sb-modern .ttab-online-dot--pending {
    background: #f97316;
}

body.sb-modern .ttab-status-text {
    font-size: 11.5px;
    color: #8e95a2;
    white-space: nowrap;
}

/* ── Actions column ── */
body.sb-modern .ttab-member-actions {
    display: flex;
    gap: 6px;
}

body.sb-modern .ttab-more-btn {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: #b0b6c2;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .12s, color .12s;
}

body.sb-modern .ttab-more-btn:hover {
    background: #f4f4f3;
    color: #111217;
}

body.sb-modern .ttab-more-btn--cancel:hover {
    background: rgba(220,38,38,.08);
    color: #dc2626;
}

/* ── Context menu ── */
body.sb-modern .ttab-ctx-menu {
    position: absolute;
    min-width: 188px;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid rgba(17,18,23,.08);
    box-shadow: 0 10px 36px rgba(17,18,23,.14);
    padding: 6px;
    z-index: 9100;
    opacity: 0;
    transform: translateY(4px) scale(.97);
    transition: opacity .14s, transform .14s;
    pointer-events: none;
}

body.sb-modern .ttab-ctx-menu--open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

body.sb-modern .ttab-ctx-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #111217;
    font-family: 'Onest', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: background .12s;
}

body.sb-modern .ttab-ctx-item:hover {
    background: #f4f4f3;
}

body.sb-modern .ttab-ctx-item--danger {
    color: #dc2626;
}

body.sb-modern .ttab-ctx-item--danger:hover {
    background: rgba(220,38,38,.07);
}

body.sb-modern .ttab-ctx-sep {
    height: 1px;
    background: rgba(17,18,23,.07);
    margin: 4px 0;
}

/* ── Ответственные за задачи ИИ (было: статичная «Зоны доступа») ── */
body.sb-modern .ttab-section--pillars {
    background: #f9f9f8;
}

body.sb-modern .ttab-pillars-sub {
    font-size: 12px;
    color: #8e95a2;
    margin: -4px 0 12px;
    padding: 0 22px;
}

body.sb-modern .ttab-pillars-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(17,18,23,.06);
    border-radius: 14px;
    overflow: hidden;
}

body.sb-modern .ttab-pillar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
}

body.sb-modern .ttab-pillar-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--pc, #8d919d) 16%, transparent);
    color: var(--pc, #555b66);
}

body.sb-modern .ttab-pillar-info {
    flex: 1;
    min-width: 0;
}

body.sb-modern .ttab-pillar-name {
    font-size: 13px;
    font-weight: 800;
    color: #111217;
}

body.sb-modern .ttab-pillar-sub {
    font-size: 11px;
    color: #8e95a2;
    margin-top: 2px;
}

body.sb-modern .ttab-pillar-owner-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    border: 1.5px solid rgba(17,18,23,.08);
    background: #fff;
    cursor: pointer;
    color: #374151;
    transition: background .12s, border-color .12s;
}

body.sb-modern .ttab-pillar-owner-btn:hover {
    background: #f5f5f4;
    border-color: rgba(17,18,23,.14);
}

body.sb-modern .ttab-pillar-owner-btn svg {
    color: #8e95a2;
    flex-shrink: 0;
}

body.sb-modern .ttab-pillar-owner-static {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 6px 10px 6px 6px;
    color: #555b66;
}

body.sb-modern .ttab-pillar-owner-ava {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    color: #111217;
    object-fit: cover;
    background: #e5e7eb;
}

body.sb-modern .ttab-pillar-owner-ava--empty {
    color: #9ca3af;
    font-weight: 700;
}

body.sb-modern .ttab-pillar-owner-ava--more {
    background: #111217;
    color: #fff;
    font-size: 9px;
}

body.sb-modern .ttab-pillar-owner-stack {
    display: flex;
    flex-shrink: 0;
}

body.sb-modern .ttab-pillar-owner-stack .ttab-pillar-owner-ava {
    border: 2px solid #fff;
    margin-left: -8px;
}

body.sb-modern .ttab-pillar-owner-stack .ttab-pillar-owner-ava:first-child {
    margin-left: 0;
}

body.sb-modern .ttab-pillar-owner-name {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 760px) {
    body.sb-modern .ttab-ops {
        padding: 16px;
        border-radius: 24px;
    }
    body.sb-modern .ttab-ops-head,
    body.sb-modern .ttab-dir-summary {
        flex-direction: column;
        align-items: stretch;
    }
    body.sb-modern .ttab-dir-tabs {
        justify-content: flex-start;
    }
    body.sb-modern .ttab-ops-title {
        font-size: 24px;
    }
    body.sb-modern .ttab-dir-note {
        max-width: none;
        text-align: left;
    }
    body.sb-modern .ttab-metric-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.sb-modern .ttab-work-grid {
        grid-template-columns: 1fr;
    }
    body.sb-modern .ttab-person-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    body.sb-modern .ttab-person-main,
    body.sb-modern .ttab-engagement {
        grid-column: 1 / -1;
    }
    body.sb-modern .ttab-row-stat,
    body.sb-modern .ttab-row-time {
        min-height: 46px;
    }
    body.sb-modern .ttab-pillar-owner-name {
        max-width: 84px;
    }
    body.sb-modern .ttab-member {
        grid-template-columns: 40px 1fr auto;
        grid-template-rows: auto auto;
    }
    body.sb-modern .ttab-member-status,
    body.sb-modern .ttab-member-actions {
        grid-column: 3;
    }
    body.sb-modern .ttab-link-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ══════════════════════════════════
   INVITE MODAL v2: tabbed
   ══════════════════════════════════ */

body.sb-modern .tm-invite-modal--v2 {
    width: min(520px, calc(100vw - 32px));
}

body.sb-modern .tm-modal-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 18px 0;
    border-bottom: 1px solid rgba(17,18,23,.07);
}

body.sb-modern .tm-modal-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 0;
    border-radius: 12px 12px 0 0;
    background: transparent;
    color: #8d919d;
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: color .15s, background .15s;
    position: relative;
    bottom: -1px;
}

body.sb-modern .tm-modal-tab:hover {
    color: #111217;
    background: rgba(17,18,23,.04);
}

body.sb-modern .tm-modal-tab--active {
    color: #111217;
    background: #fff;
    border: 1px solid rgba(17,18,23,.07);
    border-bottom-color: #fff;
}

body.sb-modern .tm-modal-panel {
    display: flex;
    flex-direction: column;
}

body.sb-modern .tm-modal-panel--hidden {
    display: none;
}

/* Role hints in dropdown */
body.sb-modern .tm-role-hint {
    font-size: 11px;
    font-weight: 400;
    color: #8d919d;
    margin-left: 6px;
}

/* Link panel */
body.sb-modern .tm-link-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(168,231,106,.1);
    border: 1.5px solid rgba(168,231,106,.3);
    border-radius: 18px;
}

body.sb-modern .tm-link-preview-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #a8e76a;
    color: #111217;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

body.sb-modern .tm-link-preview-info {
    min-width: 0;
}

body.sb-modern .tm-link-preview-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #3a6e1a;
    margin-bottom: 5px;
}

body.sb-modern .tm-link-preview-url {
    font-size: 13.5px;
    font-weight: 700;
    color: #111217;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sb-modern .tm-link-meta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

body.sb-modern .tm-link-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8e95a2;
    font-weight: 700;
}

body.sb-modern .tm-link-actions-row {
    display: flex;
    gap: 10px;
}

body.sb-modern .tm-link-copy-btn {
    flex: 1;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    background: #111217;
    color: #fff;
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity .15s;
}

body.sb-modern .tm-link-copy-btn:hover { opacity: .86; }

body.sb-modern .tm-link-copy-btn--copied {
    background: #a8e76a !important;
    color: #111217 !important;
}

body.sb-modern .tm-link-refresh-btn {
    height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 14px;
    background: #f4f4f3;
    color: #555b66;
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

body.sb-modern .tm-link-refresh-btn:hover {
    background: #ebebea;
    color: #111217;
}

body.sb-modern .tm-link-hint {
    font-size: 12px;
    color: #9299a6;
    line-height: 1.6;
    background: #f9f9f8;
    border-radius: 12px;
    padding: 10px 12px;
}

/* ── Подтверждение владения доменом (TXT-запись) ── */
body.sb-modern .sv-lead {
    font-size: 13.5px;
    line-height: 1.55;
    color: #555b66;
    margin: 0;
}
body.sb-modern .sv-lead b { color: #111217; }

body.sb-modern .sv-value-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

body.sb-modern .sv-value-box {
    flex: 1;
    min-width: 0;
    background: #f7f7f6;
    border: 1px solid rgba(17,18,23,.08);
    border-radius: 14px;
    color: #111217;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 12.5px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
}

body.sb-modern .sv-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}
body.sb-modern .sv-status--ok {
    background: rgba(168,231,106,.18);
    color: #2d5c1a;
}
body.sb-modern .sv-status--err {
    background: rgba(220,38,38,.08);
    color: #dc2626;
}
body.sb-modern .sv-status svg { flex-shrink: 0; }

/* Send button icon alignment */
body.sb-modern .tm-modal-send {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* ── Roles & Permissions Table ───────────────────────────────────────── */
body.sb-modern .ttab-section--roles {
    margin-top: 10px;
}

body.sb-modern .ttab-roles-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1.5px solid #f0f0ef;
    background: #fff;
}

body.sb-modern .ttab-roles-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

body.sb-modern .ttab-roles-th {
    padding: 11px 14px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #8a9099;
    background: #fafaf9;
    border-bottom: 1.5px solid #f0f0ef;
    white-space: nowrap;
}

body.sb-modern .ttab-roles-th--feature {
    text-align: left;
    min-width: 160px;
}

body.sb-modern .ttab-roles-badge {
    display: inline-block;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
}

body.sb-modern .ttab-roles-badge--owner      { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
body.sb-modern .ttab-roles-badge--director   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
body.sb-modern .ttab-roles-badge--supervisor { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
body.sb-modern .ttab-roles-badge--manager    { background: #fdf4ff; color: #86198f; border: 1px solid #f0abfc; }
body.sb-modern .ttab-roles-badge--admin_role { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }

body.sb-modern .ttab-roles-row:not(:last-child) td {
    border-bottom: 1px solid #f4f4f3;
}

body.sb-modern .ttab-roles-row:hover td {
    background: #fafaf9;
}

body.sb-modern .ttab-roles-td {
    padding: 9px 14px;
    text-align: center;
    vertical-align: middle;
}

body.sb-modern .ttab-roles-td--feature {
    text-align: left;
    font-weight: 500;
    color: #374151;
}

body.sb-modern .ttab-perm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
}

body.sb-modern .ttab-perm--full {
    background: #f0fdf4;
    color: #166534;
}

body.sb-modern .ttab-perm--view {
    background: #eff6ff;
    color: #1d4ed8;
}

body.sb-modern .ttab-perm--none {
    background: #f9fafb;
    color: #9ca3af;
}

/* ── Context menu: role picker ───────────────────────────── */
body.sb-modern .ttab-ctx-role-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 8px 12px 4px;
}

body.sb-modern .ttab-ctx-role-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    text-align: left;
    transition: background .12s;
}

body.sb-modern .ttab-ctx-role-item:hover {
    background: #f5f5f4;
}

body.sb-modern .ttab-ctx-role-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

body.sb-modern .ttab-ctx-role-check {
    margin-left: auto;
    color: #A8E76A;
    flex-shrink: 0;
}

/* Мультивыбор ответственных по блоку (пул может быть больше одного человека) */
body.sb-modern .ttab-ctx-role-check-box {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1.5px solid rgba(17,18,23,.18);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
}

body.sb-modern .ttab-ctx-role-check-box.is-on {
    background: #A8E76A;
    border-color: #A8E76A;
    color: #17330c;
}

body.sb-modern .ttab-ctx-role-item.is-checked {
    background: rgba(168,231,106,.1);
}

/* ── Leave team button ───────────────────────────────────── */
body.sb-modern .ttab-section--leave {
    padding: 12px 0 4px;
    display: flex;
    justify-content: center;
}

body.sb-modern .ttab-leave-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1.5px solid #fee2e2;
    background: #fff5f5;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

body.sb-modern .ttab-leave-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* ── Team header: leave button variant ──────────────────── */
body.sb-modern .ttab-header-right {
    display: flex;
    align-items: center;
}

body.sb-modern .ttab-leave-btn--header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid #fee2e2;
    background: #fff5f5;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}

body.sb-modern .ttab-leave-btn--header:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* ── Telegram block ─────────────────────────────────────── */
.pacc-section-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 4px;
    color: #8a8f9e;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.pacc-section-sep::before,
.pacc-section-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,.07);
}

/* connected state */
.pacc-tg-connected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    margin-top: 8px;
}
.pacc-tg-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(41,182,246,.12);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pacc-tg-info { flex: 1; min-width: 0; }
.pacc-tg-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}
.pacc-tg-since {
    font-size: 12px;
    color: #6b7280;
    margin-top: 1px;
}
.pacc-tg-unlink-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 9px;
    border: 1.5px solid #fca5a5;
    background: #fff5f5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.pacc-tg-unlink-btn:hover { background: #fee2e2; }

/* code row */
.pacc-tg-code-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.pacc-input--mono {
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #111;
    flex: 1;
}
.pacc-tg-check-btn {
    flex-shrink: 0;
    padding: 0 18px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: #111217;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, opacity .15s;
    white-space: nowrap;
}
.pacc-tg-check-btn:hover { background: #2d2f37; }
.pacc-tg-check-btn:disabled { opacity: .55; cursor: default; }

.pacc-tg-cmd {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 12px;
    background: rgba(0,0,0,.06);
    border-radius: 5px;
    padding: 1px 5px;
    color: #111;
}
.pacc-field-hint {
    margin-top: 5px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}
.pacc-field-hint a { color: #3b82f6; text-decoration: none; }
.pacc-field-hint a:hover { text-decoration: underline; }

.pacc-tg-regen-btn {
    display: inline-block;
    margin-top: 8px;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.pacc-tg-regen-btn:hover { color: #374151; }

/* tree wrapper */
.pacc-tg-tree {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
}
.pacc-tg-tree .pacc-tg-connected {
    margin-top: 0;
    border-radius: 14px 14px 0 0;
    border-bottom: none;
}

/* groups section */
.pacc-tg-groups {
    border: 1.5px solid #bbf7d0;
    border-top: 1px solid #d1fae5;
    border-radius: 0 0 14px 14px;
    background: #f7fef9;
    padding: 4px 0 6px 0;
}
.pacc-tg-groups-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
    padding: 6px 14px 4px;
}
.pacc-tg-group-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px 5px 0;
    transition: opacity .2s;
}
.pacc-tg-branch {
    flex-shrink: 0;
    width: 28px;
    height: 22px;
    position: relative;
    margin-left: 16px;
}
.pacc-tg-branch::before {
    content: '';
    position: absolute;
    left: 8px;
    top: -4px;
    width: 1.5px;
    height: 100%;
    background: #86efac;
}
.pacc-tg-branch::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 12px;
    height: 1.5px;
    background: #86efac;
}
.pacc-tg-group-row--last .pacc-tg-branch::before {
    height: 14px;
}
.pacc-tg-group-ico { flex-shrink: 0; }
.pacc-tg-group-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pacc-tg-group-del {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 3px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: color .15s, background .15s;
}
.pacc-tg-group-del:hover { color: #ef4444; background: #fee2e2; }

/* no-groups row */
.pacc-tg-no-groups {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #bbf7d0;
    border-top: 1px solid #d1fae5;
    border-radius: 0 0 14px 14px;
    background: #f7fef9;
    padding: 8px 14px;
}
.pacc-tg-no-groups-text {
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}
