/* PUBLIC PROFILE - DesiDex v2.2 */

.pub-profile {
    min-height: 100vh;
    background: #f8fafc;
    padding: 20px;
}

/* ===== HERO БАННЕР - исправленный ===== */
.pub-header {
    max-width: 1200px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}


/* Constellation canvas for profile header */
#profile-constellation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.pub-header-content {
    position: relative;
    z-index: 2;
}


.pub-header-content {
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Аватар */
.pub-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.pub-avatar-img, .pub-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    background: #f0fdfa;
}

.pub-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f766e;
}

.pub-avatar-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.pub-avatar-badge svg { width: 14px; height: 14px; }

/* Информация о пользователе */
.pub-header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Имя и бейдж дизайнера */
.pub-name-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
}

.pub-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.pub-badges { display: flex; gap: 8px; align-items: center; }

.pub-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.pub-badge--designer {
    background: rgba(255,255,255,0.2);
    color: white;
}

.pub-badge--top {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

/* Мета информация - рейтинг, уровень, дата */
.pub-meta {
    display: none;
}

.pub-rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== UNIFIED RATING BADGES ===== */
.pub-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    height: 36px;
    box-sizing: border-box;
}

.pub-rating-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #fbbf24;
}

.pub-rating-badge-value {
    font-weight: 700;
}

.pub-rating-badge-label {
    opacity: 0.8;
    font-weight: 500;
}

/* Level badge variants */
.pub-rating-badge--level svg {
    color: rgba(255,255,255,0.9);
}

.pub-rating-badge--newbie {
    background: rgba(255,255,255,0.2);
}

.pub-rating-badge--bronze {
    background: rgba(205, 127, 50, 0.4);
}

.pub-rating-badge--silver {
    background: rgba(156, 163, 175, 0.4);
}

.pub-rating-badge--gold {
    background: rgba(245, 158, 11, 0.4);
}

.pub-rating-badge--top {
    background: rgba(139, 92, 246, 0.4);
}

/* Since badge */
.pub-rating-badge--since {
    background: rgba(255,255,255,0.1);
}

.pub-rating-badge--since svg {
    color: rgba(255,255,255,0.7);
}

/* Verified badge */
.pub-rating-badge--verified {
    background: rgba(16, 185, 129, 0.25);
    padding: 8px 10px;
}

.pub-rating-badge--verified svg {
    color: #6ee7b7;
}


.pub-rating-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.pub-rating-score svg {
    color: #fbbf24;
    width: 16px;
    height: 16px;
}

.pub-rating-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.pub-rating-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
}

.pub-level-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

.pub-level-badge--newbie { background: rgba(255,255,255,0.2); color: white; }
.pub-level-badge--bronze { background: #cd7f32; color: white; }
.pub-level-badge--silver { background: #9ca3af; color: white; }
.pub-level-badge--gold { background: #f59e0b; color: white; }
.pub-level-badge--top { background: #8b5cf6; color: white; }

.pub-verified-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(16,185,129,0.25);
    border-radius: 10px;
    color: #6ee7b7;
}

.pub-verified-inline svg { width: 18px; height: 18px; }

.pub-member-since {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
}

.pub-member-since svg { width: 14px; height: 14px; }

.pub-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
}

/* Кнопка справа */
.pub-header-actions {
    flex-shrink: 0;
    align-self: center;
}

.pub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.pub-btn--primary {
    background: white;
    color: #0f766e;
}

.pub-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: #0f766e;
}

.pub-btn--outline {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.pub-btn--outline:hover {
    background: white;
    color: #0f766e;
}

.pub-btn svg { width: 16px; height: 16px; }

/* ===== СТАТИСТИКА ===== */
.pub-stats {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pub-stat {
    background: white;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.pub-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.pub-stat--accent { background: #fffbeb; border-color: #fcd34d; }

.pub-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pub-stat-icon svg { width: 22px; height: 22px; }

.pub-stat-icon--works { background: #dbeafe; color: #2563eb; }
.pub-stat-icon--wins { background: #fef3c7; color: #d97706; }
.pub-stat-icon--finals { background: #d1fae5; color: #059669; }
.pub-stat-icon--likes { background: #fce7f3; color: #db2777; }

.pub-stat-info { display: flex; flex-direction: column; }
.pub-stat-value { font-size: 1.5rem; font-weight: 700; color: #111827; line-height: 1; }
.pub-stat-label { font-size: 0.8rem; color: #6b7280; margin-top: 4px; }

/* ===== КОНТЕНТ ===== */
.pub-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

.pub-sidebar { display: flex; flex-direction: column; gap: 16px; }
.pub-main { min-width: 0; }

/* ===== КАРТОЧКИ ===== */
.pub-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.pub-card--progress { background: #fffbeb; border-color: #fcd34d; }
.pub-card--verify { background: #f0fdfa; border-color: #5eead4; }
.pub-card--portfolio { border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }

.pub-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #f3f4f6;
}

.pub-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.pub-card-title svg { color: #14b8a6; width: 16px; height: 16px; }

.pub-card-count {
    padding: 4px 10px;
    background: #f0fdfa;
    color: #0f766e;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pub-card-body { padding: 16px 18px; }

/* Контент карточек */
.pub-bio { font-size: 0.85rem; color: #4b5563; line-height: 1.6; margin: 0; }
.pub-bio--empty { color: #9ca3af; font-style: italic; }
.pub-empty-text { color: #9ca3af; font-size: 0.85rem; margin: 0; }

.pub-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-tag { padding: 6px 12px; background: #f0fdfa; color: #0f766e; border-radius: 8px; font-size: 0.8rem; font-weight: 500; }

.pub-links { display: flex; flex-direction: column; gap: 8px; }
.pub-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f9fafb; border-radius: 10px; color: #374151; text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.2s; }
.pub-link:hover { background: #f0fdfa; color: #0f766e; }
.pub-link-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }
.pub-link-icon--behance { background: #0057ff; color: white; }
.pub-link-icon--dribbble { background: #ea4c89; color: white; }

/* Progress */
.pub-progress-bar { height: 8px; background: rgba(255,255,255,0.5); border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.pub-progress-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #fbbf24); border-radius: 8px; }
.pub-progress-percent { text-align: right; font-size: 0.8rem; font-weight: 700; color: #d97706; margin-bottom: 12px; }
.pub-requirements { display: flex; flex-direction: column; gap: 8px; }
.pub-requirement { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(255,255,255,0.6); border-radius: 8px; font-size: 0.8rem; color: #92400e; }
.pub-requirement--done { background: rgba(16,185,129,0.15); color: #059669; }
.pub-requirement-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.5); border-radius: 6px; font-size: 0.8rem; }

/* Verify */
.pub-verify-status { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px; }
.pub-verify-status--verified { background: rgba(16,185,129,0.15); color: #059669; }
.pub-verify-status--pending { background: rgba(245,158,11,0.15); color: #d97706; }
.pub-verify-status--none { background: rgba(156,163,175,0.15); color: #6b7280; }
.pub-verify-status svg { width: 22px; height: 22px; flex-shrink: 0; }
.pub-verify-status strong { display: block; font-size: 0.9rem; margin-bottom: 3px; }
.pub-verify-status p { margin: 0; font-size: 0.8rem; opacity: 0.8; }

/* ===== ПОРТФОЛИО ===== */
.pub-filters { display: flex; gap: 10px; margin-bottom: 20px; }
.pub-select { padding: 10px 36px 10px 14px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 0.85rem; color: #374151; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; cursor: pointer; }
.pub-select:focus { outline: none; border-color: #14b8a6; }

.pub-portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.pub-work { display: block; background: white; border-radius: 14px; overflow: hidden; text-decoration: none; border: 1px solid #e5e7eb; transition: all 0.3s; }
.pub-work:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); border-color: #14b8a6; }
.pub-work--blind { cursor: default; }
.pub-work--blind:hover { transform: none; box-shadow: none; }

.pub-work-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f3f4f6; }
.pub-work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.pub-work:hover .pub-work-image img { transform: scale(1.05); }
.pub-work-image--blind, .pub-work-image--hidden { background: linear-gradient(135deg, #0f766e, #14b8a6); }

.pub-blind-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: white; }
.pub-blind-text { font-size: 0.85rem; font-weight: 600; }
.pub-blind-hint { font-size: 0.75rem; opacity: 0.7; }

.pub-work-no-image { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #d1d5db; }

.pub-work-badge { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; }
.pub-work-badge--winner { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: white; }
.pub-work-badge--finalist { background: linear-gradient(135deg, #8b5cf6, #a78bfa); color: white; }

.pub-work-info { padding: 14px; }
.pub-work-title { font-size: 0.9rem; font-weight: 600; color: #111827; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-work-type { font-size: 0.75rem; color: #6b7280; margin-bottom: 10px; }
.pub-work-meta { display: flex; align-items: center; justify-content: space-between; }
.pub-work-rating { display: flex; gap: 1px; }
.pub-work-rating--hidden .pub-star { color: #e5e7eb; }
.pub-star { font-size: 0.8rem; color: #e5e7eb; }
.pub-star--active { color: #fbbf24; }
.pub-work-stats { display: flex; gap: 10px; }
.pub-work-stat { display: flex; align-items: center; gap: 3px; font-size: 0.75rem; color: #9ca3af; }
.pub-work-stat svg { width: 12px; height: 12px; opacity: 0.7; }

/* Empty & Pagination */
.pub-empty-portfolio { text-align: center; padding: 50px 30px; color: #9ca3af; }
.pub-empty-portfolio svg { margin-bottom: 12px; opacity: 0.4; }
.pub-empty-portfolio h3 { font-size: 1.1rem; font-weight: 600; color: #6b7280; margin: 0 0 6px; }
.pub-empty-portfolio p { margin: 0; font-size: 0.9rem; }

.pub-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.pub-pagination-info { font-size: 0.8rem; color: #6b7280; }
.pub-pagination-nav { display: flex; align-items: center; gap: 4px; }
.pub-page-btn { padding: 8px 14px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 0.8rem; font-weight: 500; color: #374151; text-decoration: none; }
.pub-page-btn:hover { background: #f0fdfa; border-color: #14b8a6; color: #0f766e; }
.pub-page-numbers { display: flex; gap: 3px; }
.pub-page-num { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.85rem; color: #6b7280; text-decoration: none; }
.pub-page-num:hover { background: #f3f4f6; }
.pub-page-num--active { background: #14b8a6; color: white; font-weight: 600; }
.pub-page-dots { width: 34px; text-align: center; color: #9ca3af; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .pub-content { grid-template-columns: 1fr; }
    .pub-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; order: 2; }
    .pub-main { order: 1; }
}

@media (max-width: 768px) {
    .pub-profile { padding: 12px; }
    .pub-header-content { flex-direction: column; text-align: center; padding: 24px 20px; gap: 16px; }
    .pub-avatar-wrapper { margin: 0 auto; }
    .pub-header-info { align-items: center; }
    .pub-name-row { justify-content: center; flex-wrap: wrap; }
    .pub-name { font-size: 1.4rem; }
    .pub-rating-bar { justify-content: center; }
    .pub-header-actions { width: 100%; }
    .pub-btn { width: 100%; justify-content: center; }
    .pub-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pub-stat { padding: 14px; }
    .pub-stat-value { font-size: 1.3rem; }
    .pub-sidebar { grid-template-columns: 1fr; }
    .pub-portfolio-grid { grid-template-columns: 1fr; }
    .pub-filters { flex-direction: column; }
}

@media (max-width: 480px) {
    .pub-avatar-img, .pub-avatar-placeholder { width: 80px; height: 80px; }
    .pub-stat { flex-direction: column; text-align: center; gap: 8px; }
    .pub-stat-icon { width: 40px; height: 40px; }
}
/* ===== TOP PROGRESS CARD ===== */
.pub-card--top-progress {
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.pub-top-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-bottom: 1px solid #fde047;
}

.pub-top-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fde047, #facc15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #854d0e;
    flex-shrink: 0;
}

.pub-top-title-wrap {
    flex: 1;
}

.pub-card--top-progress .pub-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #854d0e;
    margin: 0 0 4px;
}

.pub-top-subtitle {
    font-size: 0.85rem;
    color: #a16207;
    margin: 0;
}

.pub-top-progress-ring {
    width: 56px;
    height: 56px;
    position: relative;
    flex-shrink: 0;
}

.pub-top-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pub-ring-bg {
    fill: none;
    stroke: rgba(250, 204, 21, 0.3);
    stroke-width: 4;
}

.pub-ring-fill {
    fill: none;
    stroke: #eab308;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s ease;
}

.pub-ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: #854d0e;
}

/* Requirements */
.pub-card--top-progress .pub-card-body {
    padding: 20px 24px;
}

.pub-top-requirements {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-top-req {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 14px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.pub-top-req--done {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #a7f3d0;
}

.pub-top-req-icon {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    background: #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.pub-top-req--done .pub-top-req-icon {
    background: #10b981;
    color: white;
}

.pub-top-req-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pub-top-req-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.pub-top-req--done .pub-top-req-label {
    color: #065f46;
}

.pub-top-req-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.pub-top-req--done .pub-top-req-value {
    color: #059669;
}

.pub-top-req-target {
    font-weight: 400;
    color: #9ca3af;
}

.pub-top-req--done .pub-top-req-target {
    color: #6ee7b7;
}

.pub-top-req-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.pub-top-req--done .pub-top-req-bar {
    background: rgba(16, 185, 129, 0.2);
}

.pub-top-req-fill {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6, #10b981);
    border-radius: 3px;
    transition: width 0.8s ease;
}

.pub-top-req--done .pub-top-req-fill {
    background: #10b981;
}

/* Responsive */
@media (max-width: 480px) {
    .pub-top-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .pub-top-progress-ring {
        order: -1;
        margin-left: auto;
    }
    
    .pub-top-req {
        grid-template-columns: 40px 1fr;
    }
    
    .pub-top-req-icon {
        width: 40px;
        height: 40px;
    }
}

/* Стили для скрытого конкурса */
.pub-work--hidden { cursor: default; }
.pub-work--hidden:hover { transform: none; box-shadow: none; }

/* ===== PORTFOLIO FILTERS ===== */
.pub-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pub-filter {
    position: relative;
}

.pub-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 40px 10px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 200px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.pub-select:hover {
    border-color: #14b8a6;
}

.pub-select:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.pub-select option {
    padding: 10px;
}

/* ===== UNIFIED RATING BADGES ===== */
.pub-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    height: 36px;
}

.pub-rating-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #fbbf24;
}

.pub-rating-badge-label {
    opacity: 0.7;
    font-weight: 500;
}

.pub-rating-badge--level svg {
    color: rgba(255,255,255,0.8);
}

.pub-rating-badge--since {
    background: rgba(255,255,255,0.1);
}

.pub-rating-badge--since svg {
    color: rgba(255,255,255,0.6);
}

.pub-rating-badge--verified {
    background: rgba(16,185,129,0.25);
    padding: 8px 10px;
}

.pub-rating-badge--verified svg {
    color: #6ee7b7;
}

/* Website link icon */
.pub-link-icon--website {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #6366f1;
    border-radius: 6px;
    color: white;
}

.pub-link-icon--website svg {
    width: 14px;
    height: 14px;
}

/* ===== TOP STATUS PROGRESS CARD - NEW DESIGN ===== */
.pub-top-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.pub-top-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251,191,36,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.pub-top-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.pub-top-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e1b4b;
    box-shadow: 0 8px 24px rgba(251,191,36,0.3);
}

.pub-top-card-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.pub-top-card-title p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.pub-top-card-progress {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.pub-top-card-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    overflow: hidden;
}

.pub-top-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.pub-top-card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.pub-top-metric {
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.pub-top-metric:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.pub-top-metric--done {
    background: rgba(16,185,129,0.15);
    border-color: rgba(16,185,129,0.3);
}

.pub-top-metric-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pub-top-metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
}

.pub-top-metric--done .pub-top-metric-icon {
    background: rgba(16,185,129,0.2);
    color: #6ee7b7;
}

.pub-top-metric-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.pub-top-metric-values {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.pub-top-metric-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.pub-top-metric-divider {
    font-size: 1rem;
    color: rgba(255,255,255,0.3);
}

.pub-top-metric-target {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.pub-top-metric-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.pub-top-metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #818cf8, #a78bfa);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.pub-top-metric--done .pub-top-metric-fill {
    background: linear-gradient(90deg, #10b981, #6ee7b7);
}

@media (max-width: 480px) {
    .pub-top-card-metrics {
        grid-template-columns: 1fr;
    }
    
    .pub-top-card {
        padding: 20px;
    }
}

/* FIX: Top card metrics layout */
.pub-top-card-metrics {
    grid-template-columns: 1fr 1fr;
}

.pub-top-metric {
    min-width: 0;
}

.pub-top-metric-label {
    font-size: 0.75rem;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
}

.pub-top-metric-header {
    flex-wrap: wrap;
}

.pub-top-metric-values {
    flex-wrap: wrap;
}

.pub-top-metric-current {
    font-size: 1.5rem;
}

@media (max-width: 400px) {
    .pub-top-card-metrics {
        grid-template-columns: 1fr;
    }
    
    .pub-top-metric-label {
        font-size: 0.8rem;
    }
}

/* Override: Teal gradient like cards */
.pub-top-card {
    background: linear-gradient(135deg, #0d3d3b 0%, #115e5a 50%, #0d9488 100%);
}

.pub-top-card::before {
    background: radial-gradient(circle, rgba(251,191,36,0.1) 0%, transparent 70%);
}

.pub-top-card-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0d3d3b;
}

.pub-top-card-progress-fill {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.pub-top-metric {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
}

.pub-top-metric--done {
    background: rgba(16,185,129,0.2);
    border-color: rgba(16,185,129,0.3);
}

.pub-top-metric-fill {
    background: linear-gradient(90deg, #2dd4bf, #5eead4);
}

.pub-top-metric--done .pub-top-metric-fill {
    background: linear-gradient(90deg, #10b981, #6ee7b7);
}

/* Имя и фамилия под username */
.pub-real-name {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}
