@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/*
 * trust-page.css — v4 (единый файл)
 * Поглотил trust.css: layout, декор, короны, анимации.
 * Структура:
 *   1.  Токены (:root + светлая тема)
 *   2.  Базовые стили (body, a)
 *   3.  Секция .trust-section
 *   4.  Шапка .trust-top
 *   5.  Табы
 *   6.  Поисковая строка
 *   7.  Контейнер карточек
 *   8.  Карточки пользователя
 *   9.  Аватары + короны
 *  10.  Рейтинг, роль, equipment-pill
 *  11.  Фильтры (primary-chip, eq-chip)
 *  12.  Uni-search modal
 *  13.  EQP modal
 *  14.  Profile hint overlay
 *  15.  Кнопка вверх, анимации, прочее
 *  16.  Адаптив
 */

/* =====================================================
   1. ТОКЕНЫ — ТЁМНАЯ ТЕМА (дефолт)
   ===================================================== */
:root {
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;

    /* Фон */
    --bg:           #0d1520;
    --bg2:          #111c2e;
    --card:         #161f30;
    --card-hover:   #1a2438;

    /* Текст */
    --text:         #f0f4ff;
    --text2:        #8292b0;
    --text3:        #4d5e7a;

    /* Акцент */
    --accent:       #e8a920;
    --accent-hover: #d49618;
    --accent-glow:  rgba(232, 169, 32, 0.22);

    /* Статусы */
    --success:      #22c55e;
    --danger:       #ef4444;

    /* Прочее */
    --border:       rgba(255, 255, 255, 0.07);
    --border-card:  rgba(255, 255, 255, 0.09);
    --border-gold:  rgba(232, 169, 32, 0.28);
    --shadow:       0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-card:  0 2px 16px rgba(0, 0, 0, 0.3);
    --r:            14px;
    --r-sm:         9px;

    /* equipment-pill */
    --pill-bg:      rgba(255, 255, 255, 0.04);
    --pill-border:  rgba(255, 255, 255, 0.08);
    --pill-text:    #f0f4ff;
    --pill-sub:     #4d5e7a;

    /* tabs */
    --tab-bg:          rgba(255, 255, 255, 0.04);
    --tab-active-bg:   rgba(232, 169, 32, 0.12);
    --tab-active-text: #e8a920;
    --tab-text:        #8292b0;

    /* chips */
    --chip-bg:            #111c2e;
    --chip-border:        rgba(255, 255, 255, 0.07);
    --chip-text:          #8292b0;
    --chip-active-bg:     rgba(232, 169, 32, 0.1);
    --chip-active-border: rgba(232, 169, 32, 0.45);
    --chip-active-text:   #e8a920;
}

/* =====================================================
   ТОКЕНЫ — СВЕТЛАЯ ТЕМА
   ===================================================== */
[data-theme="light"] {
    --bg:           #f1f5f9;
    --bg2:          #ffffff;
    --card:         #ffffff;
    --card-hover:   #f8fafc;

    --text:         #1e293b;
    --text2:        #475569;
    --text3:        #94a3b8;

    --accent:       #d97706;
    --accent-hover: #b45309;
    --accent-glow:  rgba(217, 119, 6, 0.2);

    --border:       rgba(0, 0, 0, 0.1);
    --border-card:  rgba(0, 0, 0, 0.09);
    --border-gold:  rgba(180, 120, 0, 0.35);
    --shadow:       0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.8);

    --pill-bg:      #f8fafc;
    --pill-border:  #e2e8f0;
    --pill-text:    #1e293b;
    --pill-sub:     #94a3b8;

    --tab-bg:          rgba(0, 0, 0, 0.04);
    --tab-active-bg:   rgba(180, 120, 0, 0.1);
    --tab-active-text: #92400e;
    --tab-text:        #475569;

    --chip-bg:            #f1f5f9;
    --chip-border:        #e2e8f0;
    --chip-text:          #334155;
    --chip-active-bg:     rgba(230, 168, 0, 0.1);
    --chip-active-border: rgba(217, 119, 6, 0.5);
    --chip-active-text:   #92400e;
}

/* =====================================================
   2. БАЗОВЫЕ СТИЛИ
   ===================================================== */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover { color: var(--accent); }

/* =====================================================
   3. СЕКЦИЯ .trust-section
   ===================================================== */
.trust-section {
    position: relative;
    padding-top: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #262C35 0%, #1e293b 100%);
    font-family: var(--font-main);
}

.trust-section * { font-family: var(--font-main); }

[data-theme="light"] .trust-section {
    background: linear-gradient(180deg, #e8edf5 0%, #f1f5f9 100%);
}

.rating-badge strong,
.views-count,
.uni-rating-badge,
.card-meta {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* =====================================================
   4. ШАПКА .trust-top
   ===================================================== */
.trust-top {
    padding: 50px 8px 0;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1025px) {
    .trust-top {
    max-width: 40%;
  }
}

/* =====================================================
   5. ТАБЫ
   ===================================================== */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin: 8px 8px 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50px;
}

[data-theme="light"] .tabs { background: rgba(0, 0, 0, 0.06); }

.tab {
    flex: 1;
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 11px 16px;
    font-size: clamp(13px, 2.5vw, 15px);
    font-weight: 600;
    font-family: var(--font-main);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    background: transparent;
    color: var(--tab-text);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.tab:active { transform: scale(0.95); }

.tab:hover {
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .tab:hover { background: rgba(0, 0, 0, 0.04); }

.tab.active {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
    font-weight: 600;
}

/* =====================================================
   6. ПОИСКОВАЯ СТРОКА
   ===================================================== */
.uni-nav-search-container {
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
    margin: 8px 0 0;
}

#uni-trigger-btn {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 199, 44, 0.04);
    border: 1.5px solid rgba(255, 199, 44, 0.55);
    padding: 0;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: 48px;
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#uni-trigger-btn:hover {
    border-color: rgba(232, 169, 32, 0.6);
    background: rgba(255, 255, 255, 0.03);
}

#uni-trigger-btn:active { background: rgba(255, 255, 255, 0.05); }

[data-theme="light"] #uni-trigger-btn {
    border-color: rgba(180, 120, 0, 0.45);
    background: rgba(180, 120, 0, 0.03);
}

[data-theme="light"] #uni-trigger-btn:hover {
    border-color: rgba(180, 120, 0, 0.7);
    background: rgba(180, 120, 0, 0.06);
}

.usb-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 12px 0 16px;
    color: #ffc72c;
    opacity: 0.9;
}

[data-theme="light"] .usb-logo { color: #92400e; }

.usb-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 199, 44, 0.25);
    flex-shrink: 0;
}

[data-theme="light"] .usb-divider { background: rgba(180, 120, 0, 0.25); }

.usb-label {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

[data-theme="light"] .usb-label { color: rgba(30, 41, 59, 0.4); }

.usb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 0 4px;
    border-radius: 50%;
    background: rgba(255, 199, 44, 0.1);
    color: #ffc72c;
    font-size: 15px;
    transition: background 0.2s ease;
}

[data-theme="light"] .usb-icon {
    color: #b47800;
    background: rgba(180, 120, 0, 0.08);
}

/* =====================================================
   7. КОНТЕЙНЕР КАРТОЧЕК
   ===================================================== */
.trust-list {
    background: var(--bg2);
    border-radius: 20px;
    padding: 16px 12px;
    margin: 10px 8px 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

[data-theme="light"] .trust-list {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    margin-top: 0;
    position: relative;
    z-index: 5;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.show-more {
    display: block;
    width: calc(100% - 32px);
    margin: 16px auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    color: var(--text2);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.08) 100%);
    border-color: rgba(255, 215, 0, 0.4);
    color: var(--accent);
    transform: translateY(-2px);
}

.show-more i { margin-right: 6px; font-size: 12px; }

/* =====================================================
   8. КАРТОЧКИ ПОЛЬЗОВАТЕЛЯ
   ===================================================== */
.card.expanded {
    background: var(--card);
    border-radius: var(--r);
    padding: 12px 14px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-card);
    margin-bottom: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    align-items: flex-start;

    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;

    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.card.expanded .card-header { display: contents; }

.card.expanded:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .card.expanded:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.card.expanded.top1 { border-color: rgba(232, 169, 32, 0.5); }
.card.expanded.top2 { border-color: rgba(180, 188, 210, 0.4); }
.card.expanded.top3 { border-color: rgba(180, 120, 60, 0.38); }

.card.expanded.top1:hover { border-color: rgba(232, 169, 32, 0.55); }
.card.expanded.top2:hover { border-color: rgba(180, 188, 210, 0.45); }
.card.expanded.top3:hover { border-color: rgba(180, 120, 60, 0.42); }

.avatar-col {
    position: relative;
    width: 52px;
    flex-shrink: 0;
    align-self: center;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding-right: 58px;
}

.card-info .name-row {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    position: relative;
}

.card-info strong,
.card-info .uname {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.3;
}

.verified-badge-list {
    color: var(--success);
    filter: drop-shadow(0 0 2px rgba(34, 197, 94, 0.3));
    font-size: 10px;
    flex-shrink: 0;
    margin-bottom: 6px;
    margin-left: -1px;
}
.card-meta        { margin: 2px 0 8px; }

.card-type {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

/* Мета-колонка — абсолютная, правый верхний угол */
.card-meta-col {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    min-width: 0;
}

.views-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text3);
    font-size: 11px;
}

.views-count i { color: var(--text3); font-size: 11px; }

.card-name-wrapper {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* =====================================================
   9. АВАТАРЫ + КОРОНЫ
   ===================================================== */
.avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 75px;
}

.avatar-wrapper .avatar,
.avatar-col .avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1.5px solid var(--border-card);
    transition: border-color 0.2s;
}

.card.expanded.top1 .avatar { border-color: rgba(232, 169, 32, 0.8);  box-shadow: none; }
.card.expanded.top2 .avatar { border-color: rgba(180, 188, 210, 0.7); box-shadow: none; }
.card.expanded.top3 .avatar { border-color: rgba(180, 120, 60, 0.65); box-shadow: none; }

/* Корона — только №1 в категории (оператор / владелец / арендатор) */
.trust-top-crown-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f1c40f, #c99700);
    color: #1a1520;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 4;
    pointer-events: none;
}
.avatar-wrapper.trust-avatar-wrap--top {
    position: relative;
}
/* Короны скрыты — используются только цветные рамки */
.crown { display: none; }

@keyframes crownPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}

/* =====================================================
   10. РЕЙТИНГ, РОЛЬ, EQUIPMENT-PILL
   ===================================================== */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    background: transparent;
    padding: 0;
    line-height: 1;
}

.rating-badge i             { color: var(--accent); font-size: 11px; }
.rating-badge strong        { font-size: 13px; font-weight: 700; color: var(--text); margin: 0; padding: 0; }
.rating-badge .review-count { font-size: 11px; color: var(--text3); font-weight: 400; margin-left: 1px; }

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 500;
    background: rgba(232, 169, 32, 0.08);
    color: var(--accent);
    border: 1px solid rgba(232, 169, 32, 0.22);
}


[data-theme="light"] .role-badge .rb-icon i {
    text-shadow:
        0 1px 0 #222,
        0 -1px 0 #222,
        1px 0 0 #222,
        -1px 0 0 #222;
}

.role-badge .rb-icon { font-size: 10px; display: flex; align-items: center; }
.role-badge .rb-icon .trust-rb-admin-svg,
.role-badge .rb-icon .trust-rb-admin-svg svg { width: 12px; height: 12px; display: block; color: inherit; }
.role-badge .rb-text { line-height: 1; }

.equipment-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px 4px 6px;
    border-radius: var(--r-sm);
    background: rgba(232, 169, 32, 0.07);
    border: 1px solid rgba(232, 169, 32, 0.2);
    width: fit-content;
    align-self: flex-start;
    transition: background 0.18s, border-color 0.18s;
}

.equipment-pill .eq-icon {
    width: 22px; height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.equipment-pill .eq-icon svg                              { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.equipment-pill .eq-icon svg path,
.equipment-pill .eq-icon svg circle,
.equipment-pill .eq-icon svg rect,
.equipment-pill .eq-icon svg polygon                      { fill: currentColor; }

.equipment-pill .eq-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--pill-text);
    line-height: 1.3;
}

.equipment-pill .eq-sub { display: none; }

.equipment-pill.skill-card--openable         { cursor: pointer; }
.equipment-pill.skill-card--openable:hover   { background: rgba(232, 169, 32, 0.13); border-color: rgba(232, 169, 32, 0.35); }

/* Светлая тема */
[data-theme="light"] .equipment-pill {
    background: rgba(217, 119, 6, 0.07);
    border-color: rgba(217, 119, 6, 0.22);
}

[data-theme="light"] .equipment-pill .eq-icon {
    color: #92400e;
}

[data-theme="light"] .equipment-pill .eq-text {
    color: #1e293b;
}

[data-theme="light"] .equipment-pill.skill-card--openable:hover {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.38);
}

/* verified-badge-list — см. выше в блоке name-row */

/* =====================================================
   11. ФИЛЬТРЫ
   ===================================================== */

/* Primary-filter */
.primary-filter-container {
    width: 100%;
    margin: 8px 0 4px;
    display: none;
}

.primary-filter-container.active { display: block; }

.primary-filter-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.primary-filter-scroll::-webkit-scrollbar { display: none; }

.primary-filter-list {
    display: flex;
    gap: 6px;
    padding: 4px 8px;
    min-width: min-content;
}

.primary-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text2);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.primary-chip:hover           { border-color: rgba(255, 199, 44, 0.35); color: var(--text); background: rgba(255, 199, 44, 0.05); }
.primary-chip.active          { border-color: rgba(255, 199, 44, 0.6); background: rgba(255, 199, 44, 0.1); color: #ffc72c; font-weight: 600; }
.primary-chip-name            { color: inherit; }

.primary-chip-count {
    background: rgba(255, 255, 255, 0.07);
    padding: 1px 5px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text3);
    letter-spacing: 0.2px;
}

.primary-chip.active .primary-chip-count { background: rgba(255, 199, 44, 0.2); color: #ffc72c; }

[data-theme="light"] .primary-chip                               { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); color: var(--text2); }
[data-theme="light"] .primary-chip:hover                         { background: rgba(180,120,0,0.06); border-color: rgba(180,120,0,0.3); color: var(--text); }
[data-theme="light"] .primary-chip.active                        { background: rgba(180,120,0,0.1); border-color: rgba(180,120,0,0.5); color: #92630a; }
[data-theme="light"] .primary-chip-count                         { background: rgba(0,0,0,0.06); color: var(--text3); }
[data-theme="light"] .primary-chip.active .primary-chip-count    { background: rgba(180,120,0,0.15); color: #92630a; }

/* eq-chip */
.eq-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 6px;
}

.eq-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    color: var(--chip-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.eq-chip:hover  { border-color: rgba(255, 215, 0, 0.35); box-shadow: 0 3px 10px rgba(0,0,0,0.15); }
.eq-chip.active { border-color: var(--chip-active-border); background: var(--chip-active-bg); color: var(--chip-active-text); }

.eq-chip .chip-icon { color: var(--accent); display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }

/* =====================================================
   12. UNI-SEARCH MODAL
   ===================================================== */
.uni-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.uni-overlay.uni-active { opacity: 1; visibility: visible; }

.uni-modal {
    background: var(--bg2);
    padding: 25px;
    border-radius: 20px;
    width: 90%; max-width: 400px;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: var(--text);
}

[data-theme="light"] .uni-modal { box-shadow: 0 20px 50px rgba(0,0,0,0.15); border-color: rgba(230,168,0,0.3); }

#uni-close-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: none; border: none;
    color: var(--text2);
    font-size: 28px;
    cursor: pointer;
}

.uni-title    { color: var(--text);  text-align: center; margin: 5px 0 0; font-size: 1.3rem; }
.uni-subtitle { color: var(--text2); text-align: center; margin: 5px 0 20px; font-size: 0.85rem; }

.uni-modal-info {
    font-size: 11px;
    line-height: 1.4;
    color: var(--text3);
    text-align: center;
    margin-bottom: 15px;
    padding: 0 20px;
    font-weight: 400;
}

.uni-modal-info a       { color: var(--text2); text-decoration: underline; transition: color 0.2s; }
.uni-modal-info a:hover { color: var(--accent); background: transparent; }

.uni-search-box {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 15px;
}

#uni-phone-input {
    flex: 1; min-width: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-main);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    font-size: 16px;
}

#uni-phone-input:focus { border-color: var(--accent); outline: none; }

#uni-find-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0 15px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#uni-find-btn:hover { background: var(--accent-hover); }

.uni-user-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid var(--border);
}

[data-theme="light"] .uni-user-card { background: var(--bg); }

.uni-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.uni-avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.uni-badge {
    font-size: 11px;
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 5px;
}

.uni-row { display: flex; justify-content: space-between; margin-bottom: 5px; color: var(--text2); font-size: 13px; }

.uni-profile-btn {
    display: block; width: 90%;
    text-align: center;
    background: var(--card-hover);
    color: var(--text);
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 10px;
    border: 1px solid var(--border);
    transition: background 0.2s;
}

.uni-error { color: var(--danger); font-size: 13px; text-align: center; margin-top: 10px; }

.uni-rating-badge {
    margin-left: auto;
    background: rgba(255, 215, 0, 0.1);
    padding: 5px 10px;
    border-radius: 8px;
    color: var(--accent);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.uni-equip-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.uni-equipment-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }

.uni-item-tag {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #075985;
    font-size: 12px; font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

[data-theme="light"] .uni-item-tag { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }

.uni-loader {
    width: 18px; height: 18px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    display: none;
    animation: uni-spin 0.8s linear infinite;
}

@keyframes uni-spin { to { transform: rotate(360deg); } }

.uni-modal.is-blacklist               { border-color: var(--danger); background: #1a0505; }
[data-theme="light"] .uni-modal.is-blacklist { background: #fff5f5; }
.is-blacklist .uni-avatar             { filter: grayscale(1) contrast(1.2); border-color: var(--danger); }
.is-blacklist .uni-badge              { background: var(--danger); color: #fff; animation: flash 1s infinite alternate; }
.is-blacklist .uni-profile-btn        { background: #b91c1c; color: #fff; }

@keyframes flash { from { opacity: 1; } to { opacity: 0.6; } }

/* =====================================================
   13. EQP MODAL
   ===================================================== */
.eqp-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.eqp-overlay.open { display: flex; }

.eqp-modal {
    width: 92%; max-width: 560px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    color: var(--text);
}

.eqp-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eqp-title { font-weight: 700; font-size: 1rem; color: var(--text); }

.eqp-close {
    background: none; border: none;
    color: var(--text2); font-size: 22px;
    cursor: pointer; line-height: 1;
}

.eqp-body { padding: 16px 18px; }

.eqp-search {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-family: var(--font-main);
    box-sizing: border-box;
}

.eqp-search:focus { outline: none; border-color: var(--accent); }

.eqp-list {
    max-height: 320px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.eqp-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.eqp-item:last-child { border-bottom: none; }
.eqp-name  { color: var(--text); }
.eqp-badge { color: var(--text2); font-size: 0.85rem; }

.eqp-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    display: flex; gap: 10px; justify-content: flex-end;
}

.eqp-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-hover);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s;
}

.eqp-btn.primary {
    background: var(--accent);
    color: #111827;
    border-color: var(--accent);
    font-weight: 700;
}

.eqp-empty { color: var(--text2); font-size: 0.9rem; padding: 8px 0; text-align: center; }

/* =====================================================
   14. PROFILE HINT OVERLAY
   ===================================================== */
.profile-hint-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: saturate(120%) blur(2px);
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 9999;
    -webkit-mask: radial-gradient(circle 72px at calc(100% - 68px) calc(100% - 84px), transparent 98%, black 100%);
            mask: radial-gradient(circle 72px at calc(100% - 68px) calc(100% - 84px), transparent 98%, black 100%);
}

.profile-hint-overlay.show { display: flex; }

.profile-hint-box {
    margin: 16px; max-width: 360px;
    background: var(--bg2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.profile-hint-title   { font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.profile-hint-actions { display: flex; gap: 8px; margin-top: 10px; }

.profile-hint-actions .btn {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
}

.profile-hint-actions .btn-primary {
    background: var(--accent);
    color: #000;
    border: none;
}

.profile-hint-hotspot {
    position: fixed;
    right: 10px; bottom: 88px;
    width: 96px; height: 96px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 199, 44, 1), 0 0 26px rgba(255, 199, 44, 0.9);
    background: rgba(255, 199, 44, 0.15);
    display: none;
    align-items: center; justify-content: center;
    color: #000;
    font-weight: 700;
    text-decoration: none;
    z-index: 10000;
}

.profile-hint-hotspot i    { color: #000; margin-right: 8px; }
.profile-hint-hotspot.show { display: flex; }

#profileBtn.profile-highlight { position: relative; }

#profileBtn.profile-highlight::after {
    content: '';
    position: absolute;
    right: -6px; top: -6px;
    width: 52px; height: 52px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 199, 44, 0.95), 0 0 26px rgba(255, 199, 44, 0.85);
    animation: hintPulse 1.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hintPulse {
    0%   { transform: scale(1);    opacity: 1; }
    50%  { transform: scale(1.08); opacity: 0.7; }
    100% { transform: scale(1);    opacity: 1; }
}

/* =====================================================
   15. КНОПКА ВВЕРХ + АНИМАЦИИ
   ===================================================== */
.trust-scroll-top-btn {
    position: fixed;
    bottom: 80px; right: 16px;
    z-index: 9990;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: var(--bg2);
    color: var(--accent);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.trust-scroll-top-btn.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.trust-scroll-top-btn:active  { transform: scale(0.9); box-shadow: 0 2px 8px rgba(0,0,0,0.5); }

@media (hover: hover) {
    .trust-scroll-top-btn:hover {
        border-color: rgba(255, 255, 255, 0.25);
        box-shadow: none;
        transform: translateY(-2px) scale(1.05);
    }
}

@keyframes pulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 rgba(255, 193, 7, 0.7); }
    50%  { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 193, 7, 0.9); }
    100% { transform: scale(1);    box-shadow: 0 0 0 rgba(255, 193, 7, 0.7); }
}

.attention-btn       { animation: pulse 1.5s infinite; transition: transform 0.3s ease; }
.attention-btn:hover { transform: scale(1.1); }

.input-loader {
    width: 18px; height: 18px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    border-top-color: #fbbf24;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* =====================================================
   16. АДАПТИВ
   ===================================================== */
@media (max-width: 768px) {
    .trust-top {
        padding: 50px 4px 0;
    }

    .tabs {
        gap: 3px;
        padding: 3px;
        margin: 6px 4px 0;
    }

    .tab {
        padding: 10px 12px;
        font-size: 13px;
    }

    .trust-list {
        padding: 16px 8px;
        margin: 0 4px 40px;
    }

    .card.expanded {
        padding: 12px;
        margin: 0 0 12px;
    }

    .avatar { width: 85px; height: 85px; }
}

@media (min-width: 1024px) {
    .trust-top {
        padding: 50px 24px 0;
    }

    .trust-list {
        max-width: 1000px;
        margin: 0 auto 80px;
        padding: 32px 24px;
    }

    .card.expanded { padding: 20px; }

    .avatar { width: 72px; height: 72px; }
}
/* =====================================================
   СВЕТЛАЯ ТЕМА — корректировки
   ===================================================== */

[data-theme="light"] .role-badge {
    background: rgba(217, 119, 6, 0.08);
    color: #92400e;
    border-color: rgba(217, 119, 6, 0.25);
}

[data-theme="light"] .role-badge .rb-icon i {
    color: #d97706;
    text-shadow:
        1px  0   0 rgba(0,0,0,0.4),
       -1px  0   0 rgba(0,0,0,0.4),
        0    1px 0 rgba(0,0,0,0.4),
        0   -1px 0 rgba(0,0,0,0.4);
}

[data-theme="light"] .rating-badge i {
    color: #d97706;
    text-shadow:
        1px  0   0 rgba(0,0,0,0.4),
       -1px  0   0 rgba(0,0,0,0.4),
        0    1px 0 rgba(0,0,0,0.4),
        0   -1px 0 rgba(0,0,0,0.4);
}

[data-theme="light"] .primary-chip.active {
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.5);
    color: #92400e;
}

[data-theme="light"] .primary-chip.active .primary-chip-count {
    background: rgba(217, 119, 6, 0.15);
    color: #92400e;
}

[data-theme="light"] .eq-chip:hover { border-color: rgba(217, 119, 6, 0.3); }

[data-theme="light"] .eq-chip.active {
    background: rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.45);
    color: #92400e;
}

[data-theme="light"] .card.expanded.top1 { border-color: rgba(217, 119, 6, 0.4); }
[data-theme="light"] .card.expanded.top1:hover { border-color: rgba(217, 119, 6, 0.5); }

[data-theme="light"] .show-more {
    background: rgba(217, 119, 6, 0.06);
    border-color: rgba(217, 119, 6, 0.2);
    color: #475569;
}

[data-theme="light"] .show-more:hover {
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.35);
    color: #92400e;
}

[data-theme="light"] .usb-divider { background: rgba(217, 119, 6, 0.2); }

[data-theme="light"] .usb-icon {
    color: #92400e;
    background: rgba(217, 119, 6, 0.08);
}

[data-theme="light"] .uni-modal {
    background: #ffffff;
    border-color: rgba(217, 119, 6, 0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
}

[data-theme="light"] .uni-overlay { background: rgba(15, 23, 42, 0.6); }

[data-theme="light"] #uni-phone-input {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] #uni-phone-input::placeholder { color: #94a3b8; }
[data-theme="light"] #uni-find-btn { background: #d97706; color: #ffffff; }
[data-theme="light"] #uni-find-btn:hover { background: #b45309; }

[data-theme="light"] .uni-badge {
    background: rgba(217, 119, 6, 0.1);
    color: #92400e;
}

[data-theme="light"] .uni-user-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* =====================================================
   17. PHANTOM REVIEW BOX — Оценка незарег. пользователя
   ===================================================== */
.uni-phantom-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text, #f8fafc);
}

.uni-phantom-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 3px;
    margin-bottom: 0;
}

.uni-phantom-rating-group {
    margin-bottom: 16px;
}

.uni-phantom-rating-group .rating-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text2, #94a3b8);
    font-size: 13px;
}

.uni-phantom-stars input {
    display: none;
}

.uni-phantom-stars label {
    font-size: 26px;
    color: var(--text2, #94a3b8);
    cursor: pointer;
    transition: color .2s;
}

.uni-phantom-stars input:checked~label,
.uni-phantom-stars label:hover,
.uni-phantom-stars label:hover~label {
    color: var(--accent, #ffc72c);
}

.uni-phantom-textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg2, #1e293b);
    border: 1px solid var(--border, rgba(255,255,255,.12));
    border-radius: 10px;
    color: var(--text, #f8fafc);
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.uni-phantom-textarea:focus {
    border-color: var(--accent, #ffc72c);
}

.uni-phantom-textarea::placeholder {
    color: #64748b;
}

.uni-phantom-anon {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text2, #94a3b8);
    margin-bottom: 12px;
}

.uni-phantom-anon input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent, #ffc72c);
    flex-shrink: 0;
}

.uni-phantom-save {
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--accent, #ffc72c), #e6b800);
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 6px 20px rgba(255, 199, 44, .28);
}

.uni-phantom-save:hover {
    transform: translateY(-2px);
}

.uni-phantom-save:active {
    transform: translateY(0);
}

.uni-phantom-save[disabled] {
    opacity: .6;
    cursor: default;
    transform: none !important;
    box-shadow: none !important;
}

.uni-phantom-status {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text2, #94a3b8);
    min-height: 18px;
}

/* =====================================================
   18. PHANTOM REVIEW — отдельная саб-модалка
   ===================================================== */
.uni-phantom-overlay {
    z-index: 1000001;
}

.uni-phantom-close-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: none; border: none;
    color: var(--text2);
    font-size: 28px;
    cursor: pointer;
}

.uni-phantom-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 11px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 199, 44, 0.35);
    background: rgba(255, 199, 44, 0.08);
    color: var(--accent, #ffc72c);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.uni-phantom-trigger-btn:hover {
    background: rgba(255, 199, 44, 0.18);
    border-color: var(--accent, #ffc72c);
}

[data-theme="light"] .uni-phantom-trigger-btn {
    border-color: rgba(230, 168, 0, 0.4);
    background: rgba(255, 199, 44, 0.1);
}