/* GTA-inspired UI — тёмная панель, золото «$», неон, читаемость */

:root {
    --gta-bg0: #060608;
    --gta-bg1: #0e0e14;
    --gta-panel: rgba(16, 16, 22, 0.88);
    --gta-panel2: rgba(22, 22, 32, 0.95);
    --gta-gold: #e8c547;
    --gta-gold-bright: #ffe566;
    --gta-gold-dim: #8a7330;
    --gta-red: #c9303e;
    --gta-red-glow: rgba(201, 48, 62, 0.45);
    --gta-cyan: #3ee8d0;
    --gta-text: #e8eaf0;
    --gta-muted: #8b8f9e;
    --gta-border: rgba(232, 197, 71, 0.22);
    --gta-border-strong: rgba(232, 197, 71, 0.45);
    --gta-radius: 14px;
    --gta-radius-lg: 22px;
    --font-ui: 'DM Sans', system-ui, sans-serif;
    --font-display: 'Sora', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.gta-ui {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 17px;
    background: var(--gta-bg0);
    color: var(--gta-text);
    line-height: 1.55;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body.gta-ui::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(201, 48, 62, 0.18), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(62, 232, 208, 0.06), transparent 45%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(232, 197, 71, 0.08), transparent 50%),
        linear-gradient(180deg, var(--gta-bg1) 0%, var(--gta-bg0) 100%);
    pointer-events: none;
}

body.gta-ui::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.04;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.45) 2px,
        rgba(0, 0, 0, 0.45) 4px
    );
    pointer-events: none;
    animation: scanDrift 14s linear infinite;
}

@keyframes scanDrift {
    to {
        transform: translateY(8px);
    }
}

.wrong-server-banner {
    background: linear-gradient(135deg, rgba(80, 20, 28, 0.95), rgba(40, 12, 18, 0.98));
    border: 1px solid var(--gta-red);
    box-shadow: 0 0 24px var(--gta-red-glow);
    color: #ffd4d8;
    padding: 14px 20px;
    margin: 0 auto 16px;
    max-width: 1400px;
    border-radius: var(--gta-radius);
    font-size: 15px;
    line-height: 1.5;
    animation: bannerShake 0.5s var(--ease-out);
}

@keyframes bannerShake {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wrong-server-banner code {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wrong-server-banner a {
    color: var(--gta-gold-bright);
}

.badge-version {
    background: rgba(30, 80, 55, 0.6) !important;
    color: #9ed4b0 !important;
    font-size: 11px !important;
    border: 1px solid rgba(100, 200, 140, 0.25) !important;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 20px 48px;
    position: relative;
}

header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px 22px;
    background: var(--gta-panel);
    border: 1px solid var(--gta-border);
    border-radius: var(--gta-radius-lg);
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: headerSlide 0.65s var(--ease-out) both;
}

@keyframes headerSlide {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    border-radius: var(--gta-radius-lg) var(--gta-radius-lg) 0 0;
    background: linear-gradient(90deg, transparent, var(--gta-gold), var(--gta-cyan), transparent);
    opacity: 0.85;
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
}

.logo .icon {
    font-size: 2rem;
    color: var(--gta-gold);
    text-shadow: 0 0 20px rgba(232, 197, 71, 0.5);
    line-height: 1;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.25);
    }
}

.logo h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--gta-text);
    text-shadow:
        0 0 40px rgba(232, 197, 71, 0.25),
        2px 2px 0 rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, #fff 0%, var(--gta-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.badge {
    background: rgba(232, 197, 71, 0.1);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gta-gold);
    text-transform: none;
    letter-spacing: 0.01em;
    border: 1px solid var(--gta-border);
}

/* Ссылки на публичный профиль участника (/member?n=…) */
a.member-link {
    color: var(--gta-cyan);
    font-weight: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(62, 232, 208, 0.35);
    transition:
        color 0.15s,
        border-color 0.15s;
}

a.member-link:hover {
    color: var(--gta-gold-bright);
    border-bottom-color: rgba(232, 197, 71, 0.55);
}

#userNickDisplay .member-link {
    color: var(--gta-text);
    border-bottom-color: rgba(232, 197, 71, 0.4);
}

#userNickDisplay .member-link:hover {
    color: var(--gta-gold-bright);
}

.badge .member-link {
    color: inherit;
    border-bottom-color: rgba(232, 197, 71, 0.45);
}

.badge .member-link:hover {
    color: var(--gta-gold-bright);
}

.contract-card .rewards .member-link {
    color: var(--gta-gold-bright);
    border-bottom-color: rgba(232, 197, 71, 0.45);
}

.rating-row--gold .rating-name .member-link,
.rating-row--silver .rating-name .member-link,
.rating-row--bronze .rating-name .member-link {
    color: inherit;
    border-bottom-color: rgba(255, 255, 255, 0.22);
}

.rating-row--gold .rating-name .member-link:hover,
.rating-row--silver .rating-name .member-link:hover,
.rating-row--bronze .rating-name .member-link:hover {
    color: var(--gta-gold-bright);
    border-bottom-color: rgba(232, 197, 71, 0.5);
}

/* Публичная / личная шапка профиля (баннер 30% + серый) */
.member-public-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    min-height: 148px;
}

.member-public-hero__banner {
    position: absolute;
    inset: 0;
    background: #2d3038;
    pointer-events: none;
    z-index: 0;
}

.member-public-hero__banner--on::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--member-banner-url);
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.member-public-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px 28px;
}

.member-public-hero__avatar-wrap {
    flex-shrink: 0;
}

.member-public-hero__avatar {
    display: block;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gta-border-strong);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    background: rgba(0, 0, 0, 0.35);
}

.member-public-hero__text {
    flex: 1;
    min-width: 200px;
}

.member-public-hero__name {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--gta-gold-bright);
    margin-bottom: 8px;
}

.member-public-hero__name-wrap {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
}

.member-public-hero__name-wrap .member-link {
    color: var(--gta-gold-bright);
    border-bottom-color: rgba(232, 197, 71, 0.45);
}

.profile-private-hero__label {
    margin-bottom: 6px;
}

.profile-media-card {
    margin-bottom: 22px;
}

.profile-media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.profile-media-grid--toolbar {
    flex-wrap: nowrap;
    align-items: stretch;
}

.profile-media-grid--toolbar .profile-winner-preview-btn {
    flex: 0 0 auto;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1180px) {
    .profile-media-grid--toolbar {
        flex-wrap: wrap;
    }
}

.profile-winner-preview-btn {
    font-size: 14px;
    padding: 10px 18px;
    white-space: nowrap;
    text-align: center;
    min-width: 380px;
    max-width: none;
    line-height: 1.35;
}

.profile-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.profile-preview-modal.hidden {
    display: none;
}

.profile-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    cursor: pointer;
}

.profile-preview-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1360px, calc(100vw - 20px));
    height: min(96vh, 1180px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: var(--gta-radius-lg);
    border: 1px solid var(--gta-border);
    background: var(--gta-panel2);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.profile-preview-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gta-border);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--gta-gold-bright);
}

.profile-preview-modal__x {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gta-muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}

.profile-preview-modal__x:hover {
    background: rgba(201, 48, 62, 0.2);
    color: #ff8a94;
}

.profile-preview-modal__iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
    background: #0a0a14;
}

.profile-media-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--gta-border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--gta-cyan);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition:
        border-color 0.2s,
        background 0.2s;
}

.profile-media-item:hover {
    border-color: var(--gta-gold);
    color: var(--gta-gold-bright);
}

.hidden-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

.user-area button {
    background: rgba(201, 48, 62, 0.15);
    border: 1px solid var(--gta-red);
    color: #ff8a94;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0.01em;
    transition:
        background 0.2s,
        color 0.2s,
        box-shadow 0.2s,
        transform 0.15s var(--ease-snap);
}

.user-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.user-area button:hover {
    background: var(--gta-red);
    color: #fff;
    box-shadow: 0 0 20px var(--gta-red-glow);
    transform: translateY(-1px);
}

.user-area button.btn-text {
    border: none;
    padding: 0 4px;
    border-radius: 0;
    background: none;
    color: var(--gta-cyan);
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

.user-area button.btn-text:hover {
    background: none;
    color: #7ff5e8;
    transform: none;
    text-decoration: underline;
}

#adminStatus {
    font-size: 14px;
    font-weight: 600;
    color: var(--gta-muted);
    text-transform: none;
    letter-spacing: 0;
}

.hidden {
    display: none !important;
}

.user-nick-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--gta-muted);
}

.user-nick-label {
    color: var(--gta-gold-dim);
}

#userNickDisplay {
    font-weight: 700;
    color: var(--gta-text);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-text {
    background: none;
    border: none;
    color: var(--gta-cyan);
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: var(--font-ui);
    font-weight: 600;
}

.btn-text:hover {
    color: #9cf5ea;
}

.nick-banner {
    background: linear-gradient(135deg, rgba(22, 28, 40, 0.95), rgba(14, 16, 24, 0.98));
    border: 1px solid var(--gta-border-strong);
    border-radius: var(--gta-radius-lg);
    padding: 16px 20px;
    margin-bottom: 22px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    animation: nickBannerIn 0.5s var(--ease-out) both;
}

@keyframes nickBannerIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nick-banner-text {
    font-size: 15px;
    color: #c4c8d4;
    margin-bottom: 12px;
    line-height: 1.45;
}

.nick-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.nick-banner-actions input[type='text'] {
    flex: 1;
    min-width: 200px;
}

.nick-later {
    border-color: var(--gta-muted) !important;
    color: var(--gta-muted) !important;
}

.nick-later:hover {
    border-color: var(--gta-text) !important;
    color: var(--gta-text) !important;
}

/* Табы */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding: 10px;
    background: var(--gta-panel);
    border: 1px solid var(--gta-border);
    border-radius: var(--gta-radius-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tab-btn {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid transparent;
    color: var(--gta-muted);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    transition:
        color 0.2s,
        background 0.2s,
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.15s;
}

.tab-btn.active {
    background: linear-gradient(180deg, rgba(201, 48, 62, 0.95), rgba(140, 30, 45, 0.98));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 0 24px var(--gta-red-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tab-btn:hover:not(.active) {
    background: rgba(232, 197, 71, 0.08);
    color: var(--gta-text);
    border-color: var(--gta-border);
}

.tab-btn:active {
    transform: scale(0.97);
}

.tab-content {
    display: none;
    animation: tabFade 0.35s var(--ease-out) both;
}

.tab-content.active {
    display: block;
}

@keyframes tabFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-bar {
    margin-bottom: 8px;
}

/* Карточки контрактов */
.contracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.contract-card {
    background: var(--gta-panel2);
    border-radius: var(--gta-radius-lg);
    padding: 20px;
    border: 1px solid var(--gta-border);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        border-color 0.25s,
        box-shadow 0.25s,
        transform 0.25s var(--ease-out);
    position: relative;
    overflow: hidden;
    animation: cardEnter 0.45s var(--ease-out) both;
}

.contract-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gta-gold), var(--gta-red));
    opacity: 0.7;
    border-radius: 2px 0 0 2px;
}

.contracts-grid .contract-card:nth-child(1) {
    animation-delay: 0.02s;
}
.contracts-grid .contract-card:nth-child(2) {
    animation-delay: 0.06s;
}
.contracts-grid .contract-card:nth-child(3) {
    animation-delay: 0.1s;
}
.contracts-grid .contract-card:nth-child(4) {
    animation-delay: 0.14s;
}
.contracts-grid .contract-card:nth-child(5) {
    animation-delay: 0.18s;
}
.contracts-grid .contract-card:nth-child(n + 6) {
    animation-delay: 0.22s;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contract-card:hover {
    border-color: var(--gta-border-strong);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(232, 197, 71, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.contract-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    margin-left: 8px;
    color: var(--gta-gold-bright);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    line-height: 1.35;
}

.contract-card .participants {
    margin: 12px 0;
    font-size: 15px;
}

.contract-card .participants span.participant-chip {
    background: rgba(0, 0, 0, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 6px 4px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 600;
}

.contract-card .participant-chip__score {
    font-size: 12px;
    font-weight: 800;
    color: var(--gta-cyan);
    letter-spacing: 0.02em;
    flex-shrink: 0;
    line-height: 1;
}

.contract-card .participants .participant-chip .member-link {
    color: inherit;
    border-bottom: none;
}

.contract-card .participants .participant-chip .member-link:hover {
    color: var(--gta-gold-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contract-card .rewards {
    font-size: 14px;
    color: var(--gta-gold);
    margin-bottom: 14px;
    font-weight: 600;
}

.contract-card small {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--gta-muted);
}

.contract-card .completed-contract-admin-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.contract-card .completed-contract-admin-actions button.delete-completed-contract {
    width: auto;
    background: linear-gradient(180deg, #8b2a35, #5c1c24);
    border: 1px solid rgba(255, 100, 100, 0.35);
}

.contract-card .completed-contract-admin-actions button.delete-completed-contract:hover {
    box-shadow: 0 0 24px rgba(139, 42, 53, 0.6);
}

.contract-card button,
.contract-card .complete-contract {
    background: linear-gradient(180deg, #d63a4a, #9e2430);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 15px;
    width: 100%;
    text-transform: none;
    letter-spacing: 0;
    transition:
        filter 0.2s,
        box-shadow 0.2s,
        transform 0.15s;
}

.contract-card button:hover,
.contract-card .complete-contract:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 20px var(--gta-red-glow);
}

.contract-card button.secondary,
.contract-card .edit-contract.secondary {
    background: rgba(40, 44, 58, 0.95);
    border-color: var(--gta-border);
    margin-top: 10px;
    color: var(--gta-text);
}

.contract-card button.secondary:hover,
.contract-card .edit-contract.secondary:hover {
    border-color: var(--gta-cyan);
    box-shadow: 0 0 16px rgba(62, 232, 208, 0.2);
}

.contract-card button.complete-contract:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    filter: grayscale(0.35);
    box-shadow: none;
}

.contract-card button.complete-contract:disabled:hover {
    filter: grayscale(0.35);
    box-shadow: none;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gta-muted);
    border: 2px dashed var(--gta-border);
    border-radius: var(--gta-radius-lg);
    background: rgba(0, 0, 0, 0.2);
    animation: emptyPulse 4s ease-in-out infinite;
}

@keyframes emptyPulse {
    0%,
    100% {
        border-color: var(--gta-border);
    }
    50% {
        border-color: rgba(232, 197, 71, 0.35);
    }
}

/* Рейтинг */
.rating-hero {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
    margin-bottom: 22px;
    border-radius: var(--gta-radius-lg);
    background: linear-gradient(125deg, rgba(201, 48, 62, 0.15), rgba(22, 32, 48, 0.75));
    border: 1px solid var(--gta-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    animation: ratingHeroIn 0.7s var(--ease-out) both;
}

@keyframes ratingHeroIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rating-hero__ico {
    font-size: 2.75rem;
    line-height: 1;
    filter: drop-shadow(0 4px 16px rgba(232, 197, 71, 0.4));
}

.rating-hero__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 4px;
    text-transform: none;
    line-height: 1.25;
}

.rating-hero__sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.45;
    white-space: pre-line;
}

.completed-tab-hint {
    margin-bottom: 14px;
    max-width: 920px;
}

.completed-tab-hint strong {
    color: var(--gta-gold);
    font-weight: 700;
}

.rating-period-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.rating-period-btn {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--gta-border);
    color: var(--gta-muted);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    transition:
        color 0.2s,
        background 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}

.rating-period-btn:hover {
    color: var(--gta-text);
    border-color: var(--gta-border-strong);
    background: rgba(232, 197, 71, 0.08);
}

.rating-period-btn.active {
    background: linear-gradient(180deg, rgba(232, 197, 71, 0.2), rgba(232, 197, 71, 0.06));
    border-color: var(--gta-gold-dim);
    color: var(--gta-gold-bright);
    box-shadow: 0 0 18px rgba(232, 197, 71, 0.12);
}

.rating-table-wrapper {
    overflow-x: auto;
    border-radius: var(--gta-radius-lg);
    border: 1px solid var(--gta-border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--gta-panel2);
    border-radius: var(--gta-radius-lg);
    overflow: hidden;
}

.rating-table--fancy tbody tr.rating-row {
    animation: ratingRowIn 0.45s var(--ease-out) both;
}

@keyframes ratingRowIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rating-table th,
.rating-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rating-table th {
    background: rgba(0, 0, 0, 0.45);
    color: var(--gta-gold);
    font-weight: 600;
    text-transform: none;
    font-size: 13px;
    letter-spacing: 0;
}

.rating-table th:first-child {
    width: 56px;
    text-align: center;
}

.rating-rank-cell {
    text-align: center;
    vertical-align: middle;
}

.rating-medal {
    font-size: 1.6rem;
    line-height: 1;
    display: inline-block;
    animation: medalBounce 0.6s var(--ease-snap) both;
}

@keyframes medalBounce {
    0% {
        transform: scale(0);
    }
    70% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

.rating-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gta-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.rating-name {
    font-weight: 700;
}

.rating-score__val {
    display: inline-block;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--gta-red);
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(201, 48, 62, 0.18);
    border: 1px solid rgba(201, 48, 62, 0.35);
}

.rating-row--gold {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.12), transparent 55%) !important;
    box-shadow: inset 4px 0 0 #ffd700;
}

.rating-row--silver {
    background: linear-gradient(90deg, rgba(200, 212, 224, 0.1), transparent 55%) !important;
    box-shadow: inset 4px 0 0 #c8d4e0;
}

.rating-row--bronze {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.12), transparent 55%) !important;
    box-shadow: inset 4px 0 0 #cd7f32;
}

.rating-row--gold .rating-score__val {
    color: #ffd966;
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.35);
}

.rating-row--silver .rating-score__val {
    color: #dde4ee;
    background: rgba(200, 212, 224, 0.1);
    border-color: rgba(200, 212, 224, 0.25);
}

.rating-row--bronze .rating-score__val {
    color: #e8a060;
    background: rgba(232, 160, 96, 0.12);
    border-color: rgba(232, 160, 96, 0.3);
}

.rating-veks {
    color: var(--gta-gold);
    font-weight: 600;
}

.rating-deposit {
    color: var(--gta-cyan);
    font-weight: 700;
    white-space: nowrap;
}

.rating-table tbody tr.rating-row:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.posters-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
}

.posters-admin-table {
    margin-top: 0;
}

.btn-sm {
    padding: 6px 14px !important;
    font-size: 13px !important;
    width: auto !important;
}

/* Админ панель */
.admin-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-card {
    background: var(--gta-panel2);
    border-radius: var(--gta-radius-lg);
    padding: 22px;
    border: 1px solid var(--gta-border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    animation: cardEnter 0.4s var(--ease-out) both;
}

.admin-card h3 {
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gta-gold-bright);
    text-transform: none;
    line-height: 1.3;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
}

input,
select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--gta-border);
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--gta-text);
    font-size: 16px;
    font-family: var(--font-ui);
    font-weight: 400;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--gta-cyan);
    box-shadow: 0 0 0 3px rgba(62, 232, 208, 0.15);
}

button {
    font-family: var(--font-ui);
}

.btn-primary {
    background: linear-gradient(180deg, #d63a4a, #9e2430);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 22px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    transition:
        filter 0.2s,
        box-shadow 0.2s,
        transform 0.15s;
}

.btn-primary1 {
    background: linear-gradient(180deg, #2fbd53, #145224);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 22px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    transition:
        filter 0.2s,
        box-shadow 0.2s,
        transform 0.15s;
}

.btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 22px var(--gta-red-glow);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: rgba(45, 50, 65, 0.95);
    border: 1px solid var(--gta-border);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--gta-text);
    font-weight: 600;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    transition:
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}

.btn-secondary:hover {
    border-color: var(--gta-gold);
    background: rgba(232, 197, 71, 0.1);
}

.btn-danger {
    background: linear-gradient(180deg, #8b2a35, #5c1c24);
    border: 1px solid rgba(255, 100, 100, 0.35);
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    transition:
        filter 0.2s,
        box-shadow 0.2s;
}

.btn-danger:hover {
    filter: brightness(1.12);
    box-shadow: 0 0 24px rgba(139, 42, 53, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gta-red);
    color: #ff8a94;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    transition:
        background 0.2s,
        color 0.2s,
        box-shadow 0.2s;
}

.btn-outline:hover {
    background: var(--gta-red);
    color: #fff;
    box-shadow: 0 0 18px var(--gta-red-glow);
}

.hint {
    font-size: 13px;
    color: var(--gta-muted);
    margin-top: 10px;
    line-height: 1.45;
}

.logs-area {
    display: block;
    margin-top: 12px;
    padding: 16px;
    max-height: 320px;
    overflow: auto;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--gta-border);
    border-radius: var(--gta-radius);
    font-size: 12px;
    line-height: 1.45;
    color: #b8e0d8;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.logs-area[hidden] {
    display: none !important;
}

/* Модалка */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 8, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease;
}

.modal.modal--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: linear-gradient(165deg, rgba(28, 30, 42, 0.98), rgba(14, 14, 20, 0.99));
    border-radius: var(--gta-radius-lg);
    padding: 28px;
    width: 520px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--gta-border-strong);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition:
        transform 0.32s var(--ease-snap),
        opacity 0.28s var(--ease-out);
}

.modal.modal--open .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Создание / редактирование контракта — шире и выше списка участников */
.modal-content.modal-content--contract {
    width: min(780px, calc(100vw - 40px));
    max-height: min(92vh, 900px);
    padding: 32px 34px;
}

.modal-content--contract #contractName {
    width: 100%;
    max-width: none;
}

.modal-content--contract #participantsFields {
    max-height: min(52vh, 480px);
    margin: 18px 0;
    padding-right: 8px;
}

.modal-content--contract .participant-row {
    padding: 12px 16px;
    margin-bottom: 12px;
}

.modal-content--contract .participant-row input {
    width: 120px;
    min-width: 100px;
}

.modal-content label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--gta-muted);
}

.modal-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gta-gold-bright);
    margin-bottom: 8px;
    text-transform: none;
    line-height: 1.3;
}

.close-org-login {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--gta-muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition:
        color 0.2s,
        background 0.2s;
}

.close-org-login:hover {
    color: #fff;
    background: rgba(201, 48, 62, 0.35);
}

.profile-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.org-users-list,
.deposits-pending-wrap,
.deposits-history-wrap {
    margin-top: 14px;
}

.deposits-subheading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gta-gold-dim);
    margin-top: 22px;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.deposits-subheading:first-of-type {
    margin-top: 16px;
}

.dep-item-admin {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--gta-border);
    border-radius: var(--gta-radius);
    padding: 14px;
    margin-bottom: 12px;
}

.dep-item-admin--history {
    border-color: rgba(255, 255, 255, 0.08);
}

.dep-item-admin__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}

.dep-item-admin__status {
    font-weight: 700;
    font-size: 14px;
    color: var(--gta-muted);
}

.dep-item-admin__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.org-user-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 15px;
}

.org-user-contracts-cb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--gta-muted);
    font-size: 14px;
    font-weight: 600;
}

.org-user-contracts-cb input {
    width: auto;
    accent-color: var(--gta-cyan);
}

.org-user-create-flag {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gta-muted);
    cursor: pointer;
}

.org-user-create-flag input {
    width: auto;
    accent-color: var(--gta-cyan);
}

.profile-page .profile-header {
    margin-bottom: 24px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.profile-podium-card {
    margin-bottom: 22px;
    padding-bottom: 8px;
    overflow: hidden;
}

.profile-podium-head h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--gta-gold-bright);
    margin-bottom: 6px;
}

.profile-podium-intro {
    margin-bottom: 18px;
    max-width: 52rem;
}

.podium-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.podium-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid var(--gta-border);
    background: rgba(0, 0, 0, 0.25);
}

.podium-chip--total {
    border-color: rgba(62, 232, 208, 0.35);
    color: var(--gta-cyan);
}

.podium-chip--1 {
    border-color: rgba(232, 197, 71, 0.55);
    color: var(--gta-gold-bright);
    background: linear-gradient(135deg, rgba(232, 197, 71, 0.12), rgba(0, 0, 0, 0.2));
}

.podium-chip--2 {
    border-color: rgba(192, 200, 212, 0.4);
    color: #d8dde8;
}

.podium-chip--3 {
    border-color: rgba(205, 127, 80, 0.45);
    color: #e8a878;
}

.podium-chip__n {
    font-variant-numeric: tabular-nums;
    font-size: 1.15rem;
}

.podium-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 0;
    position: relative;
}

.podium-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--gta-gold-dim), rgba(62, 232, 208, 0.25));
    border-radius: 2px;
    opacity: 0.65;
}

.podium-item {
    position: relative;
    padding: 0 0 20px 48px;
}

.podium-item:last-child {
    padding-bottom: 4px;
}

.podium-item__dot {
    position: absolute;
    left: 8px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--gta-bg0);
    box-shadow: 0 0 0 2px rgba(232, 197, 71, 0.35);
}

.podium-item--1 .podium-item__dot {
    background: linear-gradient(145deg, #ffe566, #c9a227);
    box-shadow: 0 0 12px rgba(232, 197, 71, 0.45);
}

.podium-item--2 .podium-item__dot {
    background: linear-gradient(145deg, #e8ecf4, #8a93a8);
    box-shadow: 0 0 10px rgba(200, 208, 220, 0.25);
}

.podium-item--3 .podium-item__dot {
    background: linear-gradient(145deg, #d4a574, #8b5a3c);
    box-shadow: 0 0 10px rgba(205, 127, 80, 0.35);
}

.podium-item__card {
    border: 1px solid var(--gta-border);
    border-radius: var(--gta-radius);
    padding: 14px 16px;
    background: var(--gta-panel2);
    transition:
        border-color 0.2s var(--ease-out),
        box-shadow 0.2s var(--ease-out);
}

.podium-item__card:hover {
    border-color: var(--gta-border-strong);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.podium-item__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.podium-item__titles {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 14px;
}

.podium-item__admin-remove {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-ui);
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(201, 48, 62, 0.55);
    background: rgba(201, 48, 62, 0.12);
    color: #f0a0a8;
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
}

.podium-item__admin-remove:hover {
    background: rgba(201, 48, 62, 0.22);
    border-color: rgba(201, 48, 62, 0.85);
    color: #fff;
}

.profile-podium-admin-hint {
    color: rgba(62, 232, 208, 0.85) !important;
    font-weight: 600;
    margin-top: 4px;
}

.podium-item__place {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.podium-item--1 .podium-item__place {
    color: var(--gta-gold-bright);
}

.podium-item--2 .podium-item__place {
    color: #dce2ee;
}

.podium-item--3 .podium-item__place {
    color: #e8a878;
}

.podium-item__when {
    font-size: 14px;
    color: var(--gta-muted);
    font-weight: 600;
}

.podium-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    font-size: 15px;
}

.podium-item__meta span {
    color: var(--gta-muted);
    font-weight: 600;
    margin-right: 6px;
}

.podium-item__meta strong {
    color: var(--gta-text);
    font-weight: 700;
}

.podium-item__reward strong {
    color: var(--gta-gold-bright);
}

.podium-item__link {
    margin-top: 10px;
}

.podium-item__link a {
    font-weight: 600;
    color: var(--gta-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(62, 232, 208, 0.35);
}

.podium-item__link a:hover {
    border-bottom-color: var(--gta-cyan);
}

.podium-empty {
    padding: 12px 0 20px;
    color: var(--gta-muted);
    font-weight: 600;
}

@media (max-width: 520px) {
    .podium-timeline::before {
        left: 11px;
    }

    .podium-item {
        padding-left: 40px;
    }

    .podium-item__dot {
        left: 4px;
    }
}

.profile-stat-card h4 {
    font-family: var(--font-display);
    color: var(--gta-gold-bright);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    text-transform: none;
}

.profile-dl__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 15px;
}

.profile-dl__row dt {
    color: var(--gta-muted);
    font-weight: 600;
}

.profile-dl__row dd {
    font-weight: 700;
    color: var(--gta-text);
}

.profile-deposit-card {
    margin-bottom: 22px;
}

.profile-deposit-card .dep-url-input {
    flex: 1;
    min-width: 200px;
}

.dep-list .dep-item {
    border: 1px solid var(--gta-border);
    border-radius: var(--gta-radius);
    padding: 12px 14px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.dep-item__st {
    color: var(--gta-muted);
    font-weight: 600;
    margin-left: 8px;
}

.dep-reason {
    margin-top: 6px;
    color: #f88 !important;
}

.profile-gate__err {
    color: #f88 !important;
    margin-top: 8px;
}

.profile-gate__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--gta-gold-bright);
    margin-bottom: 8px;
}

.close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--gta-muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition:
        color 0.2s,
        background 0.2s;
}

.close:hover {
    color: #fff;
    background: rgba(201, 48, 62, 0.35);
}

#participantsFields {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
    padding-right: 4px;
}

.participant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.35);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.participant-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.participant-pick input[type='checkbox'] {
    width: auto;
    flex-shrink: 0;
    accent-color: var(--gta-red);
}

.participant-pick span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-pick .participant-name-wrap {
    min-width: 0;
}

.participant-pick .participant-name-wrap .member-link {
    color: var(--gta-text);
    border-bottom-color: rgba(62, 232, 208, 0.35);
}

.participant-row input {
    width: 100px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 22px;
    flex-wrap: wrap;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 2000;
    max-width: min(520px, calc(100vw - 32px));
    padding: 14px 22px;
    background: linear-gradient(135deg, rgba(30, 32, 44, 0.97), rgba(18, 18, 26, 0.98));
    border: 1px solid var(--gta-border-strong);
    border-radius: var(--gta-radius);
    color: var(--gta-text);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(232, 197, 71, 0.12);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.4s var(--ease-snap),
        opacity 0.35s ease;
}

.toast.toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    display: none;
    border: 1px solid var(--gta-border);
}

[data-tooltip]:hover:before {
    display: block;
}
