/* Partner cabinet — extra styles on top of site.css */

.pk-lead {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--az-muted);
    margin-bottom: 16px;
}
.pk-sub {
    font-size: 0.8rem;
    color: var(--az-faint);
    margin-bottom: 16px;
}
body.lead-page { padding-bottom: 32px; }
.offer-hero {
    text-align: center;
    padding: 28px 20px 24px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 50% -20%, rgba(108, 92, 231, 0.5), transparent 58%),
        linear-gradient(180deg, #1a1f3a, #07090f);
    color: #fff;
    border: 1px solid rgba(201, 196, 255, 0.22);
    box-shadow: 0 22px 48px rgba(21, 21, 40, 0.28);
    margin-bottom: 16px;
}
.offer-logo {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    margin: 0 auto 14px;
    object-fit: cover;
    background: #05070e;
    border: 2px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 6px rgba(108, 92, 231, 0.22), 0 14px 30px rgba(0, 0, 0, 0.4);
    display: block;
}
.join-hero .offer-logo {
    width: 128px;
    height: 128px;
    object-fit: contain;
    background: #fff;
}
.join-note {
    margin: 14px 0 0;
    font-size: 0.78rem;
    color: rgba(232, 236, 255, 0.55);
}
.join-block {
    background: var(--az-card);
    border: 1px solid var(--az-line);
    border-radius: 22px;
    padding: 18px 16px;
    margin-bottom: 12px;
    box-shadow: var(--az-shadow);
}
.join-block h2 {
    font-size: 1.05rem;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--az-navy);
}
.join-block h2 .az-ico-tile { margin-bottom: 0; }
.join-block p {
    font-size: 0.88rem;
    color: var(--az-muted);
    margin: 0 0 10px;
    line-height: 1.45;
}
.join-block p:last-child { margin-bottom: 0; }
.join-block ul,
.join-block ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
.join-block li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--az-navy);
    padding: 7px 0;
    line-height: 1.4;
}
.join-block li .ico-badge { margin-top: 1px; }
.join-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.join-community {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.join-community a {
    background: linear-gradient(#fff, #f4f6fb);
    padding: 8px 14px;
    border-radius: 40px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--az-navy);
    border: 1px solid var(--az-line);
    text-decoration: none;
}
.join-products .az-ico-tile {
    margin-bottom: 10px;
}
.join-community a:hover {
    background: var(--az-grad);
    color: #fff;
    border-color: transparent;
}
.join-steps { counter-reset: join-step; }
.join-steps li { align-items: flex-start; }
.join-steps li::before {
    counter-increment: join-step;
    content: counter(join-step);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(108, 92, 231, 0.12);
    color: #5340d4;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.join-rates {
    margin-top: 12px !important;
    font-weight: 600;
    color: var(--az-purple-deep) !important;
}
.offer-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b9b3ff;
    font-weight: 800;
    margin: 0 0 8px;
}
.offer-hero h1 {
    font-size: 1.7rem;
    margin: 0 0 8px;
    letter-spacing: -0.03em;
    color: #fff;
}
.offer-headline {
    font-size: 1.02rem;
    font-weight: 600;
    color: #e8ecff;
    margin: 0 0 8px;
    line-height: 1.35;
}
.offer-lead {
    font-size: 0.9rem;
    color: rgba(232, 236, 255, 0.78);
    margin: 0 auto 10px;
    max-width: 38ch;
    line-height: 1.45;
}
.offer-from {
    font-size: 0.78rem;
    color: #9aa3c7;
    margin: 0 0 12px;
}
.offer-points {
    list-style: none;
    text-align: left;
    margin: 14px auto 0;
    padding: 0;
    max-width: 34ch;
}
.offer-points li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 8px 0;
    color: rgba(232, 236, 255, 0.88);
    font-size: 0.88rem;
    line-height: 1.4;
}
.offer-points .az-ico {
    width: 16px;
    height: 16px;
    color: #8fd0ff;
    flex-shrink: 0;
    margin-top: 2px;
}
.offer-hero .cta-btn {
    margin-top: 18px;
    background: var(--az-grad);
    color: #fff;
    box-shadow: 0 12px 28px rgba(59, 45, 184, 0.45);
}
.offer-hero .cta-btn:not(.btn-outline)::after { background: transparent; }
.offer-hero .cta-btn:not(.btn-outline)::before { opacity: 0.45; }
.offer-picker { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
a.offer-pick {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    background: var(--az-card);
    border: 1px solid var(--az-line);
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--az-shadow);
    min-width: 0;
}
a.offer-pick:hover {
    border-color: var(--az-purple);
    box-shadow: var(--az-shadow-lift);
}
a.offer-pick strong { display: block; font-size: 1rem; }
a.offer-pick span { display: block; font-size: 0.8rem; color: var(--az-muted); line-height: 1.35; }
.offer-go {
    margin-left: auto;
    color: var(--az-purple-deep);
    font-weight: 800;
    font-size: 1.1rem;
}
.offer-form-title {
    font-size: 1.05rem;
    margin: 0 0 6px;
}
.modal-offer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.modal-offer .product-logo { margin: 0; }
.modal-pitch {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border-radius: 16px;
    border: 1px solid var(--az-line);
    background: linear-gradient(180deg, #f7f8fc, #eef1f8);
    padding: 12px 14px;
    font: inherit;
    font-size: 0.82rem;
    color: var(--az-navy);
    line-height: 1.45;
    margin: 10px 0 0;
}
.pk-badge {
    background: linear-gradient(180deg, #fff, #f4f6fb);
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--az-purple-deep);
    white-space: nowrap;
    border: 1px solid var(--az-line);
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(21, 21, 40, 0.08);
    max-width: min(46vw, 168px);
    overflow: hidden;
    text-overflow: ellipsis;
}
.pk-badge .az-ico {
    width: 16px;
    height: 16px;
    color: #5340d4;
}
.pk-badge-text {
    overflow: hidden;
    text-overflow: ellipsis;
}
a.pk-badge {
    text-decoration: none;
    color: var(--az-purple-deep);
}
.pk-badge:hover {
    color: var(--az-purple-deep);
    background: rgba(108, 92, 231, 0.12);
    border-color: #c5c0ea;
}
.pk-card {
    background: var(--az-card);
    border-radius: 24px;
    padding: 18px 16px;
    border: 1px solid var(--az-line);
    box-shadow: var(--az-shadow);
    margin-bottom: 16px;
    min-width: 0;
    max-width: 100%;
}
.pk-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
    min-width: 0;
}
.pk-card h3 .ico-badge { margin-right: 2px; }
.pk-card h3 > .az-ico {
    width: 28px;
    height: 28px;
    padding: 5px;
    border-radius: 10px;
    background: var(--az-grad);
    color: #fff;
    box-shadow: 0 8px 16px -8px rgba(59, 45, 184, 0.7);
}
.pk-card.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(720px 280px at 80% -60px, rgba(91, 140, 255, 0.22), transparent 68%),
        radial-gradient(520px 220px at -10% 120%, rgba(108, 92, 231, 0.14), transparent 62%),
        linear-gradient(180deg, #ffffff, #f4f6fb);
    border-color: rgba(108, 92, 231, 0.28);
}
.pk-card.hero::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--az-purple);
    filter: blur(40px);
    opacity: 0.12;
    top: -70px;
    right: -40px;
    pointer-events: none;
}
.pk-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.pk-user-row > div { min-width: 0; overflow-wrap: anywhere; }
.pk-user-row .avatar {
    line-height: 1;
    display: flex;
    align-items: center;
}
.pk-user-row .avatar .node-icon { margin-bottom: 0; }
.pk-user-row .name {
    font-weight: 900;
    font-size: 1.28rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}
.pk-user-row .meta { font-size: 0.8rem; color: var(--az-faint); font-weight: 600; }
.pk-user-row .lvl {
    margin-left: auto;
    background: var(--az-grad);
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(59, 45, 184, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

#page-home .partner-actions {
    margin: 4px 0 12px;
}
#page-home .partner-links {
    margin: 0 0 16px;
}

.cta-btn.btn-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-compact {
    padding: 10px 12px;
    margin-top: 0;
    font-size: 0.85rem;
    border-radius: 12px;
}
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .cta-btn { margin-top: 0; flex: 1 1 0; min-width: 0; }
.pk-card > .cta-btn { margin-top: 12px; }
.pk-card form .cta-btn { margin-top: 8px; }
.icon-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.icon-btn .az-ico { width: 18px; height: 18px; color: #fff; }
.icon-btn:hover { transform: scale(1.05); }

.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--az-muted);
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--az-line);
    background: #fff;
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
    max-width: 100%;
}
.form-group input:focus {
    border-color: var(--az-blue);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18);
}
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--az-line);
    background: #fff;
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
    max-width: 100%;
}
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--az-blue);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18);
}
.form-group textarea { resize: vertical; min-height: 84px; }
.hp-field {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}
.form-switch {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--az-faint);
}
.form-switch a { color: var(--az-purple-deep); font-weight: 600; }
.oauth-block { margin-bottom: 4px; }
.oauth-buttons { display: flex; flex-direction: column; gap: 8px; }
.oauth-buttons .cta-btn { margin-top: 0; }
.oauth-btn { gap: 10px; }
.oauth-ico {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}
.form-divider {
    text-align: center;
    margin: 14px 0 10px;
    font-size: 0.8rem;
    color: var(--az-faint);
}

.ref-box {
    background: linear-gradient(180deg, #f7f8fc, #eef1f8);
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--az-line);
    font-size: 0.8rem;
    word-break: break-all;
    margin: 8px 0;
    gap: 10px;
    min-width: 0;
}
.ref-box span { color: var(--az-purple-deep); font-weight: 600; min-width: 0; }
.ref-box button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #111;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ref-box button .az-ico { width: 18px; height: 18px; color: #fff; }

.product-list { display: flex; flex-direction: column; gap: 12px; }
.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #f7f8fc, #eef1f8);
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--az-line);
    border-left: 4px solid var(--az-purple);
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}
.product-item .node-icon { margin-bottom: 0; margin-right: 0; }
.product-item .info { font-size: 0.85rem; flex: 1 1 0; min-width: 0; }
.product-item .name { font-weight: 600; overflow-wrap: anywhere; }
.product-item .type { font-size: 0.65rem; color: var(--az-faint); overflow-wrap: anywhere; }
.product-item .commission {
    font-weight: 700;
    background: var(--az-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 0.85rem;
    white-space: normal;
    text-align: right;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.invite-row { display: flex; gap: 8px; min-width: 0; align-items: center; }
.invite-row input {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--az-line);
    outline: none;
    font-size: 16px;
}
.invite-row input[type="number"] {
    padding: 12px 8px;
    text-align: center;
    border-radius: 16px;
    appearance: textfield;
    -moz-appearance: textfield;
}
.invite-row input[type="number"]::-webkit-outer-spin-button,
.invite-row input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.payout-list { font-size: 0.85rem; display: flex; flex-direction: column; gap: 8px; }
.payout-row {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
}
.payout-row span { min-width: 0; overflow-wrap: anywhere; }
.payout-row .sum {
    font-weight: 700;
    background: var(--az-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-extra {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 8px;
}

.product-card {
    background: var(--az-card);
    border-radius: 24px;
    padding: 18px 16px;
    border: 1px solid var(--az-line);
    box-shadow: var(--az-shadow);
    margin-bottom: 16px;
    min-width: 0;
    max-width: 100%;
}
.product-card:hover {
    border-color: transparent;
    box-shadow: var(--az-shadow-lift);
}
.product-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
    min-width: 0;
}
.product-card h3 .node-icon { margin-bottom: 0; }
.type-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 30px;
    background: linear-gradient(180deg, #f4f6fb, #e8ecf4);
    color: var(--az-muted);
    margin-bottom: 6px;
    border: 1px solid var(--az-line);
}
.type-tag .az-ico {
    width: 14px;
    height: 14px;
    color: inherit;
}
.type-tag.one-time {
    background: linear-gradient(135deg, #e8f0ff, #ece8ff);
    color: var(--az-blue-deep);
    border-color: #c5d6ff;
}
.type-tag.subscription {
    background: linear-gradient(135deg, #efe8ff, #e8ecff);
    color: var(--az-violet);
    border-color: #d2c4f5;
}
.product-card .desc { font-size: 0.8rem; color: var(--az-muted); margin-bottom: 10px; }
.product-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 10px;
    min-width: 0;
}
.product-brand-text { min-width: 0; flex: 1; }
.product-brand-text h3 {
    margin-bottom: 2px;
}
.product-site {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--az-faint);
    overflow-wrap: anywhere;
}
.product-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    background: #0b0f1c;
    flex-shrink: 0;
    display: block;
    border: 1px solid var(--az-line);
}
.product-logo-sm {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}
.product-item .product-logo { margin: 0; }
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #f7f8fc, #eef1f8);
    padding: 10px 14px;
    border-radius: 16px;
    margin-bottom: 12px;
    gap: 8px;
    border: 1px solid var(--az-line);
    flex-wrap: wrap;
    min-width: 0;
}
.price-row .client-price {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 0;
    overflow-wrap: anywhere;
}
.price-row .client-price small { font-weight: 400; font-size: 0.7rem; color: var(--az-faint); }
.price-row .partner-commission {
    background: var(--az-grad);
    color: #fff;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: normal;
    box-shadow: 0 4px 10px rgba(59, 45, 184, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    line-height: 1.25;
    text-align: center;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.price-row .partner-commission .amt,
.price-row .partner-commission .pct { display: inline; }
.action-buttons { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.action-buttons .cta-btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    margin-top: 0;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(21, 21, 40, 0.55);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 40;
    padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--az-card);
    max-width: 400px;
    width: 100%;
    border-radius: 32px;
    padding: 24px 20px;
    box-shadow: 0 20px 60px rgba(21, 21, 40, 0.35);
    border: 1px solid var(--az-line);
    min-width: 0;
}
.modal-box h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.modal-box h3 .ico-badge { margin-right: 2px; }
.modal-box .ref-url {
    background: linear-gradient(180deg, #f7f8fc, #eef1f8);
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    word-break: break-all;
    border: 1px solid var(--az-line);
    margin: 10px 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.modal-box .ref-url button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #111;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.modal-box .ref-url button .az-ico { width: 18px; height: 18px; color: #fff; }
.close-btn {
    width: 100%;
    margin-top: 4px;
}

.toast {
    display: none;
    background: var(--az-void);
    color: #fff;
    padding: 10px 20px;
    border-radius: 40px;
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    z-index: 50;
    white-space: nowrap;
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 10px 28px rgba(21, 21, 40, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.toast.show { display: block; animation: fadeUp 0.3s; }

.flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}
.flow-item {
    background: linear-gradient(180deg, #f7f8fc, #eef1f8);
    border: 2px solid var(--az-chrome);
    border-radius: 16px;
    padding: 12px 16px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.flow-item .ico-badge {
    width: 32px;
    height: 32px;
    margin-right: 0;
}
.flow-item .ico-badge .az-ico { width: 18px; height: 18px; }
.product-item .az-ico-tile,
.admin-svc-row .az-ico-tile,
.product-card h3 .az-ico-tile { margin-bottom: 0; }
.flow-item.highlight {
    background: linear-gradient(135deg, #eef3ff, #ece8ff);
    border-color: var(--az-purple);
}
.flow-item.lvl-1 { border-color: var(--az-blue); }
.flow-item.lvl-2 { border-color: var(--az-purple); }
.flow-item.lvl-3 { border-color: var(--az-chrome-mid); }
.flow-arrow { color: var(--az-purple); font-size: 1.2rem; line-height: 0; }
.flow-arrow .az-ico { width: 22px; height: 22px; color: inherit; }
.flow-label {
    font-size: 0.7rem;
    color: var(--az-faint);
    font-weight: 400;
    background: #fff;
    padding: 0 8px;
    border-radius: 30px;
    border: 1px solid var(--az-line);
    display: inline-block;
    margin-left: 4px;
}
.flow-levels { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 4px; }
.flow-levels .flow-item { flex: 1 1 88px; width: auto; min-width: 0; padding: 8px; font-size: 0.75rem; }

.table-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}
.commission-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.commission-table th {
    background: linear-gradient(135deg, #eef3ff, #ece8ff);
    padding: 10px 8px;
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--az-muted);
}
.commission-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--az-line);
    vertical-align: top;
}
.commission-table .highlight-cell {
    font-weight: 700;
    background: var(--az-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.inbox-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35em;
    padding: 1px 7px;
    margin-left: 6px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--az-grad);
    vertical-align: middle;
}
.inbox-mail-hint { margin: 0 0 12px; }
.inbox-table tr.is-new td { font-weight: 650; }
.inbox-table a {
    font-weight: 700;
    text-decoration: none;
    background: var(--az-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.join-app-card { margin: 0 0 12px; }
.join-app-card.is-pending {
    box-shadow: 0 0 0 1.5px rgba(108, 92, 231, 0.28);
}
.join-app-card .join-note {
    margin: 12px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.92rem;
    line-height: 1.5;
}
.join-app-card .btn-row { margin-top: 14px; }
.join-app-status {
    flex-shrink: 0;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--az-purple-deep);
    background: rgba(108, 92, 231, 0.12);
}
.desk-ico-join { background: linear-gradient(135deg, #a55eea, #6c5ce7 52%, #3867d6); }

.example-box {
    background: linear-gradient(180deg, #f7f8fc, #eef1f8);
    border-radius: 16px;
    padding: 16px;
    border-left: 4px solid var(--az-blue);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}
.example-box strong { color: var(--az-purple-deep); }
.example-box ul { margin: 8px 0 0 20px; font-size: 0.85rem; }
.example-box.alt { border-left-color: var(--az-purple); }

.step-list { display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; }
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(180deg, #f7f8fc, #eef1f8);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--az-line);
}
.step-num {
    background: var(--az-grad);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(59, 45, 184, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.step-item .hint { color: var(--az-faint); font-size: 0.8rem; }
.tag-one {
    background: var(--az-grad);
    color: #fff;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 700;
}
.tag-two {
    background: linear-gradient(135deg, #8454cc, #3b2db8);
    color: #fff;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 700;
}

.tech-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: radial-gradient(circle at 50% 0%, #2a2158 0%, var(--az-void) 62%);
    padding: 16px;
    border-radius: 16px;
    color: #f0f2f8;
    font-size: 0.8rem;
    box-shadow: 0 10px 24px rgba(21, 21, 40, 0.28);
}
.tech-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(200, 205, 216, 0.16);
    padding-bottom: 8px;
    min-width: 0;
}
.tech-row span { min-width: 0; overflow-wrap: anywhere; }
.tech-row:last-child { border-bottom: none; padding-bottom: 0; }
.tech-row .arrow { color: var(--az-blue-hi); }

.site-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--az-purple-deep);
    font-weight: 600;
    margin-bottom: 10px;
}
.site-link .az-ico {
    width: 16px;
    height: 16px;
    color: inherit;
}

.hex-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 4px 0 8px;
    max-width: 100%;
}
.hex-tile {
    width: 96px;
    height: 96px;
    clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background: var(--az-chrome-grad);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: inherit;
    filter: drop-shadow(0 8px 14px rgba(21, 21, 40, 0.22));
    padding: 8px;
    position: relative;
}
.hex-tile::before {
    content: "";
    position: absolute;
    inset: 6px;
    clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background: var(--az-grad-vert);
    z-index: 0;
}
.hex-tile .az-ico,
.hex-tile span {
    position: relative;
    z-index: 1;
}
.hex-tile .az-ico { width: 1.2em; height: 1.2em; color: #fff; }
.hex-tile span { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em; text-align: center; line-height: 1.15; }
.hex-tile.selected {
    filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 3px var(--az-blue-hi)) drop-shadow(0 8px 14px rgba(59, 45, 184, 0.35));
}
.hex-tile.compact { width: 72px; height: 72px; }
.hex-tile.compact::before { inset: 5px; }
.hex-tile.compact .az-ico { width: 1em; height: 1em; }
.hex-tile.compact span { font-size: 0.55rem; }

.admin-svc-list { display: flex; flex-direction: column; gap: 8px; }
.admin-svc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #f7f8fc, #eef1f8);
    border-radius: 16px;
    padding: 10px 12px;
    border: 1px solid var(--az-line);
    flex-wrap: wrap;
    min-width: 0;
}
.admin-svc-row .node-icon { margin-bottom: 0; }
.admin-svc-row .product-logo { margin: 0; }
.admin-svc-row .info { flex: 1 1 0; min-width: 0; }
.admin-svc-row .name { font-weight: 700; font-size: 0.9rem; overflow-wrap: anywhere; }
.admin-svc-row .meta { font-size: 0.75rem; color: var(--az-faint); overflow-wrap: anywhere; }
.admin-svc-row .cta-btn {
    width: auto;
    flex: 0 0 auto;
    margin-top: 0;
    padding: 8px 14px;
}

.team-hub {
    text-align: center;
    background: radial-gradient(circle at 50% 18%, #2a2158 0%, var(--az-void) 62%);
    color: #fff;
    border: none;
    box-shadow: 0 16px 36px rgba(21, 21, 40, 0.35);
    overflow: visible;
}
.team-hub h3 { color: #fff; justify-content: center; }
.team-root {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.team-root .logo-mark {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}
.team-root .name { font-weight: 800; font-size: 1.05rem; }
.team-root .meta { font-size: 0.75rem; color: #c5c0ea; }
.team-line { margin-top: 8px; }
.team-line h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c5c0ea;
    margin-bottom: 10px;
}
.hex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    max-width: 100%;
    overflow: visible;
    padding: 8px 4px;
}
.team-node {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    font-family: inherit;
    width: 108px;
    min-height: 96px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px 14px;
    position: relative;
    isolation: isolate;
    z-index: 0;
    color: #fff;
    cursor: pointer;
}
.team-node::before {
    content: "";
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    background-size: 400%;
    z-index: -1;
    filter: blur(6px);
    animation: team-glowing 20s linear infinite;
    opacity: 0.85;
    transition: opacity 0.3s ease-in-out;
    clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.team-node:hover::before,
.team-node:focus-visible::before {
    opacity: 1;
}
.team-node::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #111;
    clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.team-node:active { color: #000; }
.team-node:active::after { background: transparent; }
.team-node .nm,
.team-node .lv {
    position: relative;
    z-index: 1;
}
.team-node .nm {
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 90px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}
.team-node .lv { font-size: 0.6rem; color: #e4e0ff; margin-top: 2px; }
@keyframes team-glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .team-node::before { animation: none; }
}
.team-empty { font-size: 0.8rem; color: #c5c0ea; padding: 8px; }
.team-unassigned { margin-top: 12px; }

.accent { color: var(--az-purple-deep); }
.muted { color: var(--az-muted); }

@media (max-width: 480px) {
    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .price-row .client-price { font-size: 1rem; }
    .price-row .partner-commission {
        align-self: stretch;
        font-size: 0.72rem;
        padding: 6px 10px;
        border-radius: 16px;
    }
    .product-item .commission {
        flex: 1 1 100%;
        text-align: left;
        font-size: 0.8rem;
        padding-left: 40px;
    }
    .hex-tile { width: 80px; height: 80px; }
    .hex-tile.compact { width: 60px; height: 60px; }
    .hex-select { gap: 8px; }
    .btn-row { flex-direction: column; }
    .btn-row .cta-btn { width: 100%; }
    .action-buttons { flex-direction: column; }
    .action-buttons .cta-btn { width: 100%; }
    .admin-svc-row .cta-btn { width: 100%; }
    .partner-links button { min-height: 40px; }
    .cta-btn { min-height: 48px; }
    .cta-btn.btn-compact { min-height: 44px; }
    .header { gap: 8px; }
    .payout-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .payout-row span:first-child { grid-column: 1 / -1; font-size: 0.75rem; color: var(--az-faint); }
    .commission-table { font-size: 0.8rem; }
    .commission-table th,
    .commission-table td { padding: 8px 6px; }
    .pk-card { padding: 16px 12px; }
    .product-card { padding: 16px 12px; }
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 16px; }
    .team-node { width: 92px; min-height: 88px; padding: 14px 6px 12px; }
    .team-node .nm { max-width: 72px; font-size: 0.62rem; }
}

@media (max-width: 400px) {
    .commission-table thead { display: none; }
    .commission-table,
    .commission-table tbody,
    .commission-table tr,
    .commission-table td {
        display: block;
        width: 100%;
    }
    .commission-table tr {
        background: linear-gradient(180deg, #f7f8fc, #eef1f8);
        border: 1px solid var(--az-line);
        border-radius: 14px;
        margin-bottom: 10px;
        padding: 8px 12px;
    }
    .commission-table td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 8px;
        border-bottom: 1px solid var(--az-line);
        padding: 6px 0;
    }
    .commission-table td:first-child {
        display: block;
        padding-bottom: 8px;
        margin-bottom: 2px;
    }
    .commission-table td:not(:first-child)::before {
        content: attr(data-label);
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--az-muted);
        font-weight: 700;
    }
    .commission-table td:last-child { border-bottom: none; }
    .invite-row { gap: 6px; }
    .invite-row input[type="number"] { padding: 10px 4px; font-size: 0.8rem; }
    .pk-badge { max-width: min(40vw, 140px); padding: 8px; }
}

@media (min-width: 768px) {
    .toast { bottom: 32px; }
}

/* /join/ landing */
body.join-land {
    padding-bottom: 32px;
}
body.join-land .container {
    max-width: 960px;
}
.join-hi {
    background: linear-gradient(90deg, #73b1fe, #e4e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.join-hero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}
.join-hero-actions .cta-btn {
    margin-top: 10px;
    flex: 1 1 200px;
    max-width: 320px;
}
.join-hero a.cta-btn.btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
}
.join-hero a.cta-btn.btn-outline:hover {
    background: #fff;
    color: var(--az-purple-deep);
}
.join-hero .offer-headline,
.join-hero .offer-lead {
    max-width: 54ch;
}
.join-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.join-nav a {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--az-navy);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--az-line);
    background: #fff;
    box-shadow: 0 2px 6px rgba(21, 21, 40, 0.05);
}
.join-nav a:hover {
    border-color: var(--az-blue);
    color: var(--az-purple-deep);
}
.join-nav.desktop-only { display: none; }
.join-sec { margin: 8px 0 28px; }
.join-sec-title {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    text-align: center;
    margin: 0 0 8px;
    color: var(--az-navy);
}
.join-sec-sub {
    text-align: center;
    color: var(--az-muted);
    font-size: 0.92rem;
    max-width: 56ch;
    margin: 0 auto 18px;
    line-height: 1.45;
}
.join-sec-alt {
    background: linear-gradient(180deg, #f4f6fb, #eef1f8);
    border-radius: 28px;
    padding: 22px 16px 8px;
    margin-left: -4px;
    margin-right: -4px;
}
.join-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.join-card,
.join-whom,
.join-prod,
.join-step {
    background: var(--az-card);
    border: 1px solid var(--az-line);
    border-radius: 20px;
    padding: 18px 16px;
    box-shadow: var(--az-shadow);
}
.join-card h3,
.join-whom h3,
.join-prod h3,
.join-step h3 {
    font-size: 1.02rem;
    margin: 8px 0 6px;
    color: var(--az-navy);
}
.join-card p,
.join-whom p,
.join-prod p,
.join-step p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--az-muted);
    line-height: 1.45;
}
.join-card .az-ico-tile { margin-bottom: 4px; }
.join-whom h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}
.join-whom h3 .az-ico {
    width: 20px;
    height: 20px;
    color: var(--az-purple-deep);
    flex-shrink: 0;
}
.join-whom {
    border-left: 4px solid #6c5ce7;
}
body.join-land .join-products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.join-prod {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}
.join-prod:hover {
    border-color: rgba(108, 92, 231, 0.45);
    transform: translateY(-2px);
}
.join-prod .product-logo {
    margin-bottom: 10px;
    object-fit: contain;
    background: #fff;
}
.join-prod-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--az-purple-deep);
    background: #eef3ff;
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 8px;
}
.join-prod-link {
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--az-purple-deep);
}
.join-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    counter-reset: join-land-step;
}
.join-steps-grid .join-step {
    display: block;
    counter-increment: join-land-step;
}
.join-steps-grid .join-step::before {
    content: counter(join-land-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--az-grad);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.join-cta-band {
    background:
        radial-gradient(120% 80% at 50% -20%, rgba(108, 92, 231, 0.45), transparent 58%),
        linear-gradient(180deg, #1a1f3a, #07090f);
    color: #fff;
    border-radius: 28px;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid rgba(201, 196, 255, 0.22);
    box-shadow: 0 22px 48px rgba(21, 21, 40, 0.28);
    margin-bottom: 8px;
}
.join-cta-band h2 {
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}
.join-cta-band p {
    font-size: 0.95rem;
    opacity: 0.82;
    max-width: 46ch;
    margin: 0 auto 8px;
}
.join-cta-band a.cta-btn.btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
}
.join-cta-band a.cta-btn.btn-outline:hover {
    background: #fff;
    color: var(--az-purple-deep);
}
.join-cta-band .cta-btn:not(.btn-outline) {
    background: var(--az-grad);
    color: #fff;
    box-shadow: 0 12px 28px rgba(59, 45, 184, 0.45);
}
.join-cta-band .cta-btn:not(.btn-outline)::after { background: transparent; }
.join-cta-band .cta-btn:not(.btn-outline)::before { opacity: 0.45; }
.join-sec[id],
.join-cta-band {
    scroll-margin-top: 12px;
}
body.join-land .header {
    flex-wrap: wrap;
}
body.join-land .header .cta-btn.btn-compact {
    width: auto;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.78rem;
}
@media (min-width: 720px) {
    .join-grid-4 { grid-template-columns: 1fr 1fr; }
    body.join-land .join-products,
    .join-steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.join-land .header .cta-btn.btn-compact { max-width: none; }
    .join-hero h1 { font-size: 2.15rem; }
}
@media (min-width: 900px) {
    .join-nav-mobile { display: none; }
    .join-nav.desktop-only {
        display: flex;
        flex: 1;
        justify-content: center;
        margin: 0;
    }
    body.join-land .header { flex-wrap: nowrap; }
}
@media (min-width: 960px) {
    .join-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    body.join-land .header .cta-btn.btn-compact { display: none; }
    .join-hero-actions .cta-btn { max-width: none; flex: 1 1 100%; }
}

/* Logged-in desk (from mockup/partners-desk.html) */
body.pk-guest .in-only { display: none !important; }
body.pk-in .guest-only { display: none !important; }
body.pk-guest .bottom-nav { display: none !important; }
body.pk-in .site-link { display: none; }

.desk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 12px;
}
.desk-tile {
    appearance: none;
    font: inherit;
    text-align: left;
    text-decoration: none;
    background: linear-gradient(#fff, #fff) padding-box, var(--az-grad) border-box;
    color: var(--az-navy);
    border: 1.5px solid transparent;
    border-radius: 18px;
    padding: 16px 14px 14px;
    cursor: pointer;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    isolation: isolate;
    z-index: 0;
    transition: transform 0.2s;
    box-shadow: 0 4px 14px rgba(21, 21, 40, 0.08);
}
.desk-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 16px;
    background: #fff;
    pointer-events: none;
}
.desk-tile::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -2;
    border-radius: 18px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    filter: blur(5px);
    opacity: 0;
    animation: az-glowing 20s linear infinite;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}
.desk-tile b { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.03em; color: var(--az-navy); }
.desk-tile small { opacity: 0.78; font-size: 0.72rem; color: var(--az-muted); font-weight: 600; }
a.desk-tile:hover,
a.desk-tile:focus-visible {
    color: var(--az-navy);
    transform: translateY(-3px);
}
a.desk-tile:hover::before,
a.desk-tile:focus-visible::before { opacity: 1; }
a.desk-tile:active { transform: translateY(0); }

.desk-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    isolation: isolate;
    box-shadow:
        0 10px 20px -10px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.38);
    flex-shrink: 0;
}
.desk-ico::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.32), transparent 48%);
    pointer-events: none;
}
.desk-ico .az-ico {
    width: 22px;
    height: 22px;
    color: #fff;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}
.desk-ico-deals { background: linear-gradient(135deg, #5b8cff, #6c5ce7 55%, #3b2db8); }
.desk-ico-train { background: linear-gradient(135deg, #ff6b6b, #ee5a24 48%, #c44569); }
.desk-ico-team { background: linear-gradient(135deg, #00b894, #0984e3 52%, #6c5ce7); }

.hero-label {
    margin: 0 0 14px;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.28);
    color: var(--az-purple);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 11px;
    font-weight: 700;
}

body:not(.deal-kanban) .page-title {
    font-weight: 900;
    font-size: clamp(1.5rem, 6.5vw, 2.05rem);
    letter-spacing: -0.05em;
    line-height: 1.08;
    margin-bottom: 14px;
}
body:not(.deal-kanban) .page-title .az-ico-tile {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--az-grad);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(59, 45, 184, 0.7);
}
body:not(.deal-kanban) .page-title .az-ico-tile svg { color: #fff; }

#page-cabinet .stat-row {
    gap: 8px;
}
#page-cabinet .stat-item {
    background: #fff;
    border: 1px solid var(--az-line);
    border-radius: 16px;
    padding: 12px 6px 10px;
    box-shadow: 0 4px 14px rgba(21, 21, 40, 0.06);
}
#page-cabinet .stat-item .num {
    font-weight: 900;
    letter-spacing: -0.04em;
}
#page-cabinet .stat-item .label {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ico-badge {
    background: var(--az-grad);
    width: 32px;
    height: 32px;
    border-radius: 11px;
    box-shadow: 0 8px 16px -8px rgba(59, 45, 184, 0.65);
}
.ico-badge .az-ico {
    color: #fff !important;
    width: 16px;
    height: 16px;
}

.bottom-nav .nav-item.active {
    color: var(--az-purple-deep);
    background: rgba(108, 92, 231, 0.12);
}
.bottom-nav .nav-item.active .az-ico,
.bottom-nav .nav-item:hover .az-ico {
    color: #fff;
    background: var(--az-grad);
    border-radius: 12px;
    width: 28px;
    height: 28px;
    padding: 5px;
    box-shadow: 0 6px 14px -6px rgba(59, 45, 184, 0.7);
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f6fb;
    border: 1px solid var(--az-line);
    border-radius: 16px;
    padding: 10px 10px 10px 12px;
    margin: 0 0 8px;
}
.copy-row:last-child { margin-bottom: 0; }
.copy-row .txt { flex: 1; min-width: 0; }
.copy-row .lbl {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--az-navy);
}
.copy-row .lbl .pct {
    font-weight: 800;
    color: var(--az-purple-deep);
    white-space: nowrap;
    font-size: 0.68rem;
}
.copy-row .url {
    font-size: 0.7rem;
    color: var(--az-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.copy-row button {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    background: linear-gradient(#111, #111) padding-box, var(--az-grad) border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.copy-row button .az-ico { width: 18px; height: 18px; color: #fff; }

.team-hit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: inherit;
    font: inherit;
    background: linear-gradient(#fff, #fff) padding-box, var(--az-grad) border-box;
    border: 1.5px solid transparent;
    border-radius: 16px;
    padding: 12px 14px;
    cursor: pointer;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.team-hit-copy { flex: 1; min-width: 0; }
.team-hit-copy strong { font-weight: 800; letter-spacing: -0.02em; }
.team-hit .nums { font-weight: 800; color: var(--az-purple-deep); white-space: nowrap; }
a.team-hit:visited,
a.team-hit:hover { color: inherit; }

.prod-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--az-line);
    font-size: 0.86rem;
}
.prod-line:last-child { border-bottom: none; }
.prod-line .prod-name { min-width: 0; overflow-wrap: anywhere; }
.prod-line .pct { font-weight: 800; color: var(--az-purple-deep); white-space: nowrap; }
.prod-line .icon-btn { margin-left: 4px; }

.kind-seg { display: flex; gap: 8px; }
.kind-chip {
    flex: 1;
    font: inherit;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 12px 8px;
    border-radius: 14px;
    border: 1.5px solid var(--az-line);
    background: #fff;
    color: var(--az-navy);
    cursor: pointer;
}
.kind-chip.is-on,
.kind-chip.selected {
    background: var(--az-grad);
    color: #fff;
    border-color: transparent;
}

.more-list { display: flex; flex-direction: column; gap: 8px; }
.more-list button,
.more-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    font: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid var(--az-line);
    background: #fff;
    color: var(--az-navy);
    cursor: pointer;
    text-decoration: none;
    margin-top: 0;
}
.more-list .az-ico { width: 18px; height: 18px; color: var(--az-purple-deep); }
.more-list .cta-btn { justify-content: flex-start; }
#azPushBtn[data-state="on"] { color: #1f7a4d; }
#azPushBtn[data-state="on"] .az-ico { color: #1f7a4d; }
#azPushBtn[data-state="denied"],
#azPushBtn[data-state="ios"] { color: var(--az-faint); }

.person {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--az-line);
    width: 100%;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    font: inherit;
    text-align: left;
    color: inherit;
}
.person:last-child { border-bottom: none; }
.person .node-icon { --node-size: 40px; margin-bottom: 0; }
.person .who { font-weight: 700; font-size: 0.88rem; }
.person .meta { font-size: 0.72rem; color: var(--az-faint); }
.team-list { display: flex; flex-direction: column; }
.pk-card .team-empty { color: var(--az-faint); padding: 4px 0; }
.hint-ok {
    font-size: 0.75rem;
    color: var(--az-muted);
    background: #eef8f2;
    border: 1px dashed #9ad4b4;
    border-radius: 12px;
    padding: 8px 10px;
    margin: 8px 0 0;
}
.team-hub.team-plain {
    text-align: left;
    background: var(--az-card);
    color: var(--az-navy);
    border: 1px solid var(--az-line);
    box-shadow: var(--az-shadow);
}
.team-hub.team-plain h3 { color: var(--az-navy); justify-content: flex-start; }
.team-hub.team-plain .team-root {
    align-items: center;
    text-align: center;
    width: 100%;
}
.team-hub.team-plain .team-root .cta-btn.btn-compact {
    width: auto;
    margin: 8px auto 0;
}
.team-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
}
.team-crumb-btn {
    appearance: none;
    border: 1px solid var(--az-line);
    background: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--az-navy);
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
}
.team-crumb-btn.is-on {
    border-color: transparent;
    background: var(--az-grad);
    color: #fff;
}
.team-crumb-sep {
    color: var(--az-faint);
    font-weight: 700;
}
.team-stem {
    width: 2px;
    height: 16px;
    margin: 0 auto 10px;
    border-radius: 2px;
    background: var(--az-grad);
}
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.team-grid .team-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 12px 8px;
}
.team-card {
    appearance: none;
    border: 1px solid var(--az-line);
    background: #fff;
    border-radius: 18px;
    padding: 14px 12px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 108px;
    box-shadow: var(--az-shadow);
}
.team-card:hover,
.team-card:focus-visible {
    border-color: rgba(108, 92, 231, 0.45);
}
.team-card .node-icon { --node-size: 40px; margin-bottom: 2px; }
.team-card .who { font-weight: 800; font-size: 0.92rem; color: var(--az-navy); }
.team-card .meta { font-size: 0.72rem; color: var(--az-muted); line-height: 1.35; }
@media (min-width: 720px) {
    .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.team-hub.team-plain .team-root .meta { color: var(--az-faint); }
.team-hub.team-plain .team-line h3 {
    color: var(--az-muted);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
}
@media (prefers-reduced-motion: reduce) {
    .desk-tile { transition: none; }
    .desk-tile::before { animation: none; }
    a.desk-tile:hover,
    a.desk-tile:focus-visible { transform: none; }
}

html.pk-app #page-home,
html.pk-app .site-link,
html.pk-app a[href="/join/"],
html.pk-app a[href="/apply/"],
html.pk-app a[href="/ru/"],
html.pk-app a[href="/en/"],
html.pk-app a[href="/ru/#partners"],
html.pk-app a[href="/en/#partners"],
html.pk-app .more-list a[href="/ru/"],
html.pk-app .more-list a[href="/en/"],
html.pk-app .footer,
html.pk-app .az-cookie {
    display: none !important;
}
html.pk-app p:has(a[href="/join/"]),
html.pk-app p:has(a[href="/apply/"]) {
    display: none !important;
}
html.pk-app #page-login > .cta-btn.btn-outline,
html.pk-app #page-register > .cta-btn.btn-outline {
    display: none !important;
}

.dl-grid {
    display: grid;
    gap: 12px;
    margin: 8px 0 16px;
}
.dl-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    margin: 0 0 8px;
}
.dl-card .pk-sub { margin-bottom: 0; }
.dl-card .cta-btn { margin-top: 14px; }
@media (min-width: 720px) {
    .dl-grid { grid-template-columns: 1fr 1fr; }
}
body.is-android .dl-card[data-os="android"],
body.is-ios .dl-card[data-os="ios"] {
    border-color: rgba(108, 92, 231, 0.45);
}
