/* Profile Header - Horizontal Layout */
.profile-header {
    padding: var(--space-lg) var(--space-lg);
    margin-bottom: 0;
    animation: fadeIn 0.4s ease;
}

.profile-header-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--space-md);
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-wrapper:hover .avatar-edit-overlay {
    opacity: 1;
    transform: scale(1.1);
}

.avatar-edit-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: var(--surface-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0.9;
    transition: all var(--transition-fast);
    border: 2px solid var(--bg-color);
    cursor: pointer;
}

.avatar-edit-overlay i,
.avatar-edit-overlay svg {
    width: 10px;
    height: 10px;
    color: var(--text-muted);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}

.profile-avatar.premium {
    border: 3px solid transparent;
    background:
        linear-gradient(var(--surface-color), var(--surface-color)) padding-box,
        var(--gradient-primary) border-box;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

.profile-username {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 4px;
}

/* Hidden - no longer used */
.profile-level {
    display: none;
}

/* Profile heat badge */
.profile-heat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 107, 107, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--heat-color);
}

.profile-heat-badge svg {
    flex-shrink: 0;
    width: 9px;
    height: 12px;
}

/* Profile stats with dividers */
.profile-stats {
    display: flex;
    gap: 0;
    justify-content: center;
    margin-bottom: 14px;
}

.profile-stat {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
}

.profile-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.profile-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.profile-stat-divider {
    width: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Profile tabs - underline style */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.profile-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.profile-tab:hover {
    color: var(--text-secondary);
}

.profile-tab.active {
    color: var(--text-color);
    font-weight: 600;
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Circle item for profile circles tab */
.circle-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.circle-item:hover {
    background: var(--surface-color);
}

.circle-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.circle-info {
    flex: 1;
    min-width: 0;
}

.circle-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.circle-meta {
    font-size: 13px;
    color: var(--text-muted);
}

/* Q&A item for profile tab */
.qa-item {
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
}

.qa-question {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--space-sm);
}

.qa-answer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.profile-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-lg);
}

/* Profile actions - horizontal button row */
.profile-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

/* Primary follow/unfollow button - wide coral */
.profile-actions .btn-follow {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: var(--primary-color);
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    color: white;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-actions .btn-follow:hover {
    opacity: 0.9;
}

.profile-actions .btn-follow.following {
    background: var(--surface-elevated);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* Small icon buttons */
.profile-actions .btn-icon {
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-actions .btn-icon:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
}

.profile-actions .btn-icon.spark {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

.profile-actions .btn-icon.spark:hover {
    background: rgba(251, 191, 36, 0.15);
}

/* Post grid for profile */
.profile-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: var(--space-sm);
}

.profile-post-item {
    aspect-ratio: 1;
    background: var(--surface-elevated);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.profile-post-item:hover {
    opacity: 0.8;
}

.profile-post-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-post-item .post-text-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    overflow: hidden;
    line-height: 1.3;
}

/* Profile Section Groups */
.profile-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.profile-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-section-content {
    padding: var(--space-md);
}

.profile-section-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.profile-section-item:hover {
    background: var(--surface-elevated);
}

.profile-section-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.profile-section-item-content {
    flex: 1;
}

.profile-section-item-title {
    font-weight: 500;
    color: var(--text-color);
}

.profile-section-item-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* Badges */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.badge-item:hover {
    background: var(--surface-elevated);
    transform: translateY(-2px);
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xs);
    font-size: 20px;
}

.badge-name {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

.badge-item.locked {
    opacity: 0.4;
}

.badge-item.locked .badge-icon {
    background: var(--surface-elevated);
    filter: grayscale(1);
}

.badge-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Profile Action Buttons */
.profile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--surface-elevated);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.profile-action-btn i,
.profile-action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.badge-icon-wrapper i,
.badge-icon-wrapper svg {
    width: 24px;
    height: 24px;
    color: white;
}

.profile-action-btn:hover {
    background: var(--border-color);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.profile-action-btn:active {
    transform: scale(0.97);
}

.profile-action-btn.primary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.profile-action-btn.primary i,
.profile-action-btn.primary svg {
    color: white;
    stroke: white;
}

.profile-action-btn.primary:hover {
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.4);
}

.profile-action-btn.danger {
    color: var(--danger-color);
}

.profile-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger-color);
}

/* Circles Dropdown */
.circles-dropdown {
    position: relative;
    display: inline-block;
}

.circles-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 180px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    padding: 8px 0;
}

.circles-dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.circles-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 14px;
    color: var(--text-color);
}

.circles-dropdown-item:hover {
    background: var(--surface-elevated);
}

.circles-dropdown-item i {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

/* User List (Followers/Following) */
.user-list-container {
    padding: 12px 16px;
}

.user-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-list-item:hover {
    background: var(--surface-elevated);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.user-list-item:active {
    transform: scale(0.98);
}

.user-list-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.user-list-avatar-placeholder {
    background: var(--gradient-primary);
    color: white;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-list-info {
    flex: 1;
    min-width: 0;
}

.user-list-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-list-username {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   MY PROFILE ("Мой огонь")
   ======================================== */

.my-profile-content {
    padding: 12px 16px;
}

.my-profile-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.my-profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.my-profile-avatar {
    width: 68px;
    height: 68px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    overflow: hidden;
}

.my-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: var(--surface-elevated);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.my-profile-user-info {
    flex: 1;
}

.my-profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.my-profile-settings-btn {
    width: 32px;
    height: 32px;
    background: var(--surface-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: auto;
    align-self: flex-start;
}

.my-profile-settings-btn:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.my-profile-username {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.my-profile-bio {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

/* About Section - Enhanced Design */
.profile-about-section {
    background: linear-gradient(135deg, rgba(255,107,107,0.08) 0%, rgba(251,191,36,0.04) 100%);
    border: 1px solid rgba(255,107,107,0.12);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.profile-about-section::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,107,107,0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Status bubble */
.profile-about-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.12);
    border-radius: 10px;
    margin-bottom: 12px;
}

.profile-about-status .status-emoji {
    font-size: 12px;
}

.profile-about-status .status-text {
    font-size: 12px;
    color: #A78BFA;
    flex: 1;
}

.profile-about-status .status-edit {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #52525B;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-about-status .status-edit:hover {
    color: #71717A;
}

.profile-about-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.profile-about-title {
    font-size: 13px;
    font-weight: 600;
    color: #A1A1AA;
}

/* Location badge */
.profile-about-location {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    background: #1F1F23;
    border-radius: 4px;
    font-size: 10px;
    color: #71717A;
}

.profile-about-location .location-icon {
    font-size: 9px;
}

/* Language flag */
.profile-about-lang {
    padding: 2px 5px;
    background: #1F1F23;
    border-radius: 4px;
    font-size: 10px;
}

/* Heat badge in about section */
.profile-about-heat {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: rgba(255,107,107,0.12);
    border-radius: 8px;
    margin-left: auto;
}

.profile-about-heat svg {
    width: 9px;
    height: 11px;
}

.profile-about-heat span {
    font-size: 11px;
    font-weight: 700;
    color: #FF6B6B;
}

.profile-about-bio {
    font-size: 14px;
    line-height: 1.5;
    color: #E4E4E7;
    margin: 0 0 14px 0;
}

/* Mutual friends */
.profile-about-mutual {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin-bottom: 10px;
}

.profile-about-mutual .mutual-avatars {
    display: flex;
}

.profile-about-mutual .mutual-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #1A1A1E;
}

.profile-about-mutual .mutual-avatar:not(:first-child) {
    margin-left: -6px;
}

.profile-about-mutual .mutual-text {
    font-size: 11px;
    color: #71717A;
}

.profile-about-mutual .mutual-text strong {
    color: #A1A1AA;
    font-weight: 600;
}

/* Monochrome interest tags */
.profile-about-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Remove top margin if preceded by bio */
.profile-about-bio + .profile-about-interests {
    margin-top: 0;
}

.profile-about-interests .interest-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-about-interests .interest-tag svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Default (unselected) state - gray */
.profile-about-interests .interest-tag {
    background: #1F1F23;
    border: 1px solid #2E2E33;
    color: #71717A;
}

/* Selected state - coral */
.profile-about-interests .interest-tag.selected {
    background: linear-gradient(135deg, rgba(255,107,107,0.15), rgba(255,160,122,0.1));
    border: 1.5px solid rgba(255,107,107,0.4);
    color: #FF6B6B;
    font-weight: 600;
}

/* Member since footer */
.profile-about-member-since {
    font-size: 10px;
    color: #3F3F46;
}

/* Achievements Section */
.my-profile-achievements,
.other-profile-achievements {
    margin-bottom: 14px;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.my-profile-achievements:hover,
.other-profile-achievements:hover {
    opacity: 0.9;
}

.achievements-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.achievements-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.achievements-count {
    flex: 1;
    text-align: right;
    font-size: 11px;
    color: var(--text-muted);
    margin-right: 2px;
}

.achievements-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface-color);
    border-radius: 12px;
    margin-bottom: 8px;
}

.achievements-trophy {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.achievements-progress-info {
    flex: 1;
}

.achievements-earned {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.achievements-earned .earned-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

.achievements-earned .earned-label {
    font-size: 11px;
    color: var(--text-muted);
}

.achievements-progress-bar {
    height: 4px;
    background: var(--surface-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.achievements-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FBBF24, #F59E0B);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.achievements-percent {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Achievements Page */
.achievements-page {
    padding-bottom: 20px;
}

.achievements-page-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--surface-color);
    border-radius: 14px;
    margin-bottom: 16px;
}

.achievements-page-summary .summary-trophy {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.achievements-page-summary .summary-info {
    flex: 1;
}

.achievements-page-summary .summary-count {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
}

.achievements-page-summary .summary-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.achievements-page-summary .summary-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.achievements-page-summary .progress-bar {
    width: 60px;
    height: 6px;
    background: var(--surface-elevated);
    border-radius: 3px;
    overflow: hidden;
}

.achievements-page-summary .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FBBF24, #F59E0B);
    border-radius: 3px;
}

.achievements-page-summary .progress-percent {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Achievement Categories */
.achievements-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.achv-category {
    background: var(--surface-color);
    border-radius: 14px;
    overflow: hidden;
}

.achv-cat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
}

.achv-cat-emoji {
    font-size: 14px;
}

.achv-cat-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.achv-cat-progress {
    font-size: 11px;
    font-weight: 600;
    color: #10B981;
}

.achv-list {
    padding: 4px 0;
}

.achv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    transition: background var(--transition-fast);
}

.achv-item:hover {
    background: var(--surface-elevated);
}

.achv-item.locked {
    opacity: 0.5;
}

.achv-item.locked .achv-icon {
    background: #242428 !important;
}

.achv-item.locked .achv-icon svg path,
.achv-item.locked .achv-icon svg circle,
.achv-item.locked .achv-icon svg rect {
    stroke: #71717A;
    fill: none;
}

.achv-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.achv-body {
    flex: 1;
    min-width: 0;
}

.achv-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.achv-desc {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achv-status {
    flex-shrink: 0;
}

.achv-rarity {
    font-size: 9px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.achv-rarity--common {
    background: rgba(161, 161, 170, 0.15);
    color: #A1A1AA;
}

.achv-rarity--rare {
    background: rgba(99, 102, 241, 0.15);
    color: #6366F1;
}

.achv-rarity--epic {
    background: rgba(236, 72, 153, 0.15);
    color: #EC4899;
}

.achv-rarity--legendary {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
}

.achievements-next {
    text-align: center;
    flex-shrink: 0;
}

.achievements-next .next-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.achievements-next .next-badge.locked {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    opacity: 0.6;
    border: 1.5px dashed rgba(99, 102, 241, 0.4);
}

.achievements-next .next-label {
    font-size: 7px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* My Profile Stats */
.my-profile-stats {
    display: flex;
    gap: 0;
    justify-content: center;
    margin-bottom: 14px;
    background: var(--surface-color);
    border-radius: 14px;
    padding: 4px 0;
}

.my-profile-stat {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    cursor: pointer;
}

.my-profile-stat .stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
}

.my-profile-stat .stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Heat stat value */
.my-profile-stat .stat-value.heat-value {
    color: #FF6B6B;
}

/* Other profile heat badge */
.other-profile-heat {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    margin-left: auto;
    margin-right: 8px;
}

.other-profile-heat svg {
    flex-shrink: 0;
}

/* ========================================
   AVATAR FRAME EFFECTS & BADGES
   ======================================== */

/* Avatar wrapper with frame support */
.my-profile-avatar-wrapper.has-frame,
.other-profile-avatar-wrapper.has-frame {
    position: relative;
}

.my-profile-avatar-wrapper.has-frame .my-profile-avatar,
.other-profile-avatar-wrapper.has-frame .other-profile-avatar {
    border: none;
}

/* Gradient frame */
.frame-gradient {
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #FBBF24, #8B5CF6);
}

/* Fire frame */
.frame-fire {
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #FFA07A);
    animation: fireGlow 2s ease-in-out infinite;
}

@keyframes fireGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255,107,107,0.3); }
    50% { box-shadow: 0 0 25px rgba(255,107,107,0.5); }
}

/* Neon frame */
.frame-neon {
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    box-shadow: 0 0 20px rgba(99,102,241,0.4);
}

/* Rainbow frame */
.frame-rainbow {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #FF6B6B, #FBBF24, #10B981, #3B82F6, #8B5CF6, #FF6B6B);
    animation: rainbowSpin 4s linear infinite;
}

@keyframes rainbowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.frame-rainbow .my-profile-avatar,
.frame-rainbow .other-profile-avatar {
    animation: rainbowSpinReverse 4s linear infinite;
}

@keyframes rainbowSpinReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* VIP star badge at bottom-right of avatar */
.vip-star-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FBBF24, #FF6B6B);
    border-radius: 50%;
    border: 3px solid #0D0D0F;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(251,191,36,0.4);
    z-index: 2;
}

/* Heat badge under username */
.my-profile-badges,
.other-profile-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.heat-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: rgba(255,107,107,0.1);
    border-radius: 8px;
}

.heat-badge svg {
    flex-shrink: 0;
}

.heat-badge span {
    font-size: 11px;
    font-weight: 700;
    color: #FF6B6B;
}

/* Effect badges (small colored badges) */
.effect-badge {
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
}

.effect-badge.effect-fire {
    background: rgba(255,107,107,0.08);
    border: 1px solid rgba(255,107,107,0.2);
    color: #FF6B6B;
}

.effect-badge.effect-neon {
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    color: #818CF8;
}

.effect-badge.effect-rainbow {
    background: linear-gradient(90deg, rgba(255,107,107,0.1), rgba(251,191,36,0.1), rgba(16,185,129,0.1));
    border: 1px solid rgba(255,107,107,0.2);
    color: #FBBF24;
}

.effect-badge.effect-vip {
    background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(255,107,107,0.1));
    border: 1px solid rgba(251,191,36,0.3);
    color: #FBBF24;
    font-weight: 700;
}

.effect-badge.effect-gradient {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.2);
    color: #FBBF24;
}

/* Gradient name effect */
.gradient-name {
    background: linear-gradient(90deg, #FF6B6B, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800 !important;
}

/* Other profile avatar wrapper */
.other-profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

/* Active effects section */
.profile-active-effects {
    margin-bottom: 14px;
}

.active-effects-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.active-effects-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.active-effects-grid {
    display: flex;
    gap: 8px;
}

.active-effect-card {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.active-effect-card:hover {
    transform: translateY(-2px);
}

.active-effect-card.effect-neon {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.05));
    border: 1px solid rgba(99,102,241,0.2);
}

.active-effect-card.effect-fire,
.active-effect-card.effect-gradient {
    background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(255,107,107,0.05));
    border: 1px solid rgba(251,191,36,0.2);
}

.active-effect-card.effect-vip {
    background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(255,107,107,0.1));
    border: 1px solid rgba(251,191,36,0.3);
}

.active-effect-card.effect-rainbow {
    background: linear-gradient(135deg, rgba(255,107,107,0.08), rgba(251,191,36,0.08), rgba(16,185,129,0.08));
    border: 1px solid rgba(255,107,107,0.15);
}

.active-effect-card.effect-about_fire {
    background: linear-gradient(135deg, rgba(255,107,107,0.1), rgba(255,160,122,0.08));
    border: 1px solid rgba(255,107,107,0.2);
}

.active-effect-card.effect-about_neon {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.08));
    border: 1px solid rgba(99,102,241,0.2);
}

.active-effect-card.effect-about_mint {
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(52,211,153,0.08));
    border: 1px solid rgba(16,185,129,0.2);
}

.active-effect-card.effect-about_sunset {
    background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(245,158,11,0.08));
    border: 1px solid rgba(251,191,36,0.2);
}

.active-effect-card.effect-about_pink {
    background: linear-gradient(135deg, rgba(236,72,153,0.1), rgba(244,114,182,0.08));
    border: 1px solid rgba(236,72,153,0.2);
}

.active-effect-emoji {
    font-size: 18px;
    margin-bottom: 4px;
}

.active-effect-name {
    font-size: 10px;
    font-weight: 600;
}

.active-effect-card.effect-neon .active-effect-name { color: #818CF8; }
.active-effect-card.effect-fire .active-effect-name,
.active-effect-card.effect-gradient .active-effect-name { color: #FBBF24; }
.active-effect-card.effect-vip .active-effect-name { color: #FBBF24; }
.active-effect-card.effect-rainbow .active-effect-name { color: #FBBF24; }

.active-effect-time {
    font-size: 9px;
    color: #52525B;
}

/* Daily Post Banner */
.my-profile-daily-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.my-profile-daily-banner:hover {
    background: rgba(251, 191, 36, 0.1);
}

.daily-banner-info {
    flex: 1;
}

.daily-banner-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--spark-color);
}

.daily-banner-hint {
    font-size: 10px;
    color: var(--text-muted);
}

/* Big Fire Banner */
.my-profile-bigfire-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(255, 142, 83, 0.08));
    border: 1px solid rgba(255, 107, 107, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.my-profile-bigfire-banner:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(255, 142, 83, 0.12));
}

.bigfire-banner-icon {
    font-size: 20px;
    animation: bigfire-flicker-small 0.5s ease-in-out infinite alternate;
}

@keyframes bigfire-flicker-small {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.bigfire-banner-info {
    flex: 1;
}

.bigfire-banner-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.bigfire-banner-hint {
    font-size: 10px;
    color: var(--text-muted);
}

/* My Circles Section */
.my-profile-circles {
    margin-bottom: 14px;
}

.circles-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.circles-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.circles-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
}

.circles-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.my-circle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--surface-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.my-circle-item:hover {
    background: var(--surface-color);
    margin: 0 -8px;
    padding: 8px;
    border-radius: 8px;
}

.my-circle-item:last-child {
    border-bottom: none;
}

.my-circle-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.my-circle-info {
    flex: 1;
}

.my-circle-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.my-circle-members {
    font-size: 10px;
    color: var(--text-muted);
}

.my-circle-status {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--surface-elevated);
    padding: 3px 8px;
    border-radius: 8px;
}

.my-circle-status.owner {
    color: var(--spark-color);
    background: rgba(251, 191, 36, 0.1);
}

.my-circle-status.admin {
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
}

.empty-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 16px;
}

.error-hint {
    text-align: center;
    color: var(--danger-color);
    font-size: 13px;
    padding: 16px;
}

/* Edit Profile Button */
.my-profile-edit-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    background: var(--surface-color);
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.my-profile-edit-btn:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
}


/* ========================================
   OTHER USER PROFILE ("Профиль")
   ======================================== */

.other-profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--surface-color);
}

.other-profile-back-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.other-profile-back-btn:hover {
    color: var(--primary-color);
}

.other-profile-title {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
}

.other-profile-menu-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.other-profile-menu-btn:hover {
    color: var(--text-muted);
}

.other-profile-content {
    padding: 12px 16px;
}

.other-profile-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.other-profile-avatar {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.other-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.other-profile-user-info {
    flex: 1;
}

.other-profile-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
}

.other-profile-username {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.other-profile-heat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 107, 107, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

.other-profile-heat-badge svg {
    flex-shrink: 0;
}

.other-profile-heat-badge span {
    font-size: 11px;
    color: var(--heat-color);
    font-weight: 600;
}

/* Other Profile Stats */
.other-profile-stats {
    display: flex;
    gap: 0;
    justify-content: center;
    margin-bottom: 14px;
    background: #1A1A1E;
    border-radius: 14px;
}

.other-profile-stat {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
}

.other-profile-stat .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.other-profile-stat .stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Other Profile Actions */
.other-profile-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.other-profile-follow-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: var(--primary-color);
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    color: white;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.other-profile-follow-btn:hover {
    opacity: 0.9;
}

.other-profile-follow-btn.following {
    background: var(--surface-elevated);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.other-profile-icon-btn {
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-muted);
}

.other-profile-icon-btn:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
}

.other-profile-icon-btn.spark {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

.other-profile-icon-btn.spark:hover {
    background: rgba(251, 191, 36, 0.15);
}

/* Other Profile Tabs */
.other-profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.other-profile-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.other-profile-tab:hover {
    color: var(--text-secondary);
}

.other-profile-tab.active {
    color: var(--text-color);
    font-weight: 600;
}

.other-profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Gift icon button */
.other-profile-icon-btn.gift {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
}

.other-profile-icon-btn.gift:hover {
    background: rgba(139, 92, 246, 0.15);
}

/* ========================================
   GIFTS SECTION
   ======================================== */

.my-profile-gifts,
.other-profile-gifts {
    margin-bottom: 14px;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.my-profile-gifts:hover,
.other-profile-gifts:hover {
    opacity: 0.9;
}

.gifts-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.gifts-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
}

.gifts-link {
    margin-left: auto;
    font-size: 10px;
    color: var(--spark-color);
    font-weight: 500;
}

.gifts-showcase {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px;
    background: #1A1A1E;
    border-radius: 12px;
}

/* Other profile gifts - no container background */
.other-profile-gifts .gifts-showcase {
    background: transparent;
    padding: 0;
}

.gifts-showcase::-webkit-scrollbar {
    display: none;
}

.gift-item {
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.gift-item:hover {
    transform: scale(1.1);
}

.gift-emoji {
    font-size: 22px;
    line-height: 1;
}

.gift-count {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
}

.gift-days {
    font-size: 8px;
    color: var(--spark-color);
    font-weight: 600;
    margin-top: 1px;
}

/* Large gift items for other profiles */
.gift-item-large {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: #1A1A1E;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gift-emoji-large {
    font-size: 28px;
    line-height: 1;
}

.gift-item-large .gift-count {
    margin-top: 4px;
}

.gift-price {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 6px;
}

.gift-price span {
    font-size: 9px;
    color: var(--spark-color);
    font-weight: 700;
}

/* ========================================
   GIFT SHOP PAGE - REDESIGNED
   ======================================== */

.gift-shop-page {
    padding-bottom: 20px;
}

.gift-shop-content {
    padding: 16px;
}

.gift-shop-section {
    margin-bottom: 20px;
}

.gift-shop-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Reactions grid - 4 columns */
.gift-shop-reactions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.gift-shop-reaction {
    background: #1A1A1E;
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gift-shop-reaction:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gift-shop-reaction:active {
    transform: scale(0.97);
}

.gift-reaction-emoji {
    font-size: 28px;
    margin-bottom: 6px;
}

.gift-reaction-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.gift-reaction-desc {
    font-size: 9px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.gift-reaction-price {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
}

.gift-reaction-price span {
    font-size: 11px;
    color: var(--spark-color);
    font-weight: 700;
}

/* Premium grid - 3 columns */
.gift-shop-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gift-shop-premium {
    background: #1A1A1E;
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gift-shop-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gift-shop-premium:active {
    transform: scale(0.97);
}

.gift-premium-emoji {
    font-size: 32px;
    margin-bottom: 8px;
}

.gift-premium-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

.gift-premium-desc {
    font-size: 9px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.gift-premium-price {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 5px 10px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 10px;
}

.gift-premium-price span {
    font-size: 12px;
    color: var(--spark-color);
    font-weight: 700;
}

/* Profile effects list */
.gift-shop-effects-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gift-shop-effect {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1A1A1E;
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gift-shop-effect:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.gift-shop-effect:active {
    transform: scale(0.99);
}

.gift-effect-icon {
    flex-shrink: 0;
}

.gift-effect-info {
    flex: 1;
    min-width: 0;
}

.gift-effect-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.gift-effect-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.gift-effect-price {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px 10px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.gift-effect-price span {
    font-size: 12px;
    color: var(--spark-color);
    font-weight: 700;
}

/* Frame preview animations */
@keyframes fireGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 107, 107, 0.5); }
}

@keyframes rainbowSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gift-frame-preview {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-frame-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1A1A1E;
}

.gift-frame-gradient {
    background: linear-gradient(135deg, #FF6B6B, #FBBF24, #8B5CF6);
}

.gift-frame-fire {
    background: linear-gradient(135deg, #FF6B6B, #FFA07A);
    animation: fireGlow 2s ease-in-out infinite;
}

.gift-frame-neon {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.gift-frame-rainbow {
    background: conic-gradient(from 0deg, #FF6B6B, #FBBF24, #10B981, #3B82F6, #8B5CF6, #FF6B6B);
    position: relative;
}

.gift-frame-rainbow .gift-frame-inner {
    width: 40px;
    height: 40px;
}

/* Icon boxes */
.gift-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #242428;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-gradient-text {
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(90deg, #FF6B6B, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gift-icon-vip {
    background: linear-gradient(135deg, #FBBF24, #FF6B6B);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

/* Gift count in showcase */
.gift-count {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Empty gifts message */
.gifts-empty {
    font-size: 12px;
    color: var(--text-muted);
    padding: 12px;
    text-align: center;
}

/* ========== My Gifts Page ========== */
.my-gifts-page {
    padding-bottom: 80px;
}

.my-gifts-page .page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.my-gifts-page .page-header h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.my-gifts-content {
    padding: 16px;
}

.gifts-section {
    margin-bottom: 24px;
}

.gifts-section .section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 4px 0;
}

.gifts-section .section-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.activatable-gifts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activatable-gift-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.activatable-gift-card .gift-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.activatable-gift-card .gift-emoji-large {
    font-size: 32px;
    line-height: 1;
}

.activatable-gift-card .gift-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activatable-gift-card .gift-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.activatable-gift-card .gift-duration {
    font-size: 12px;
    color: var(--text-muted);
}

.regular-gifts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.regular-gift-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.regular-gift-card .gift-emoji {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 6px;
}

.regular-gift-card .gift-name {
    font-size: 11px;
    color: var(--text-color);
    font-weight: 500;
}

/* ========== Activate Gift Modal ========== */
.activate-gift-modal {
    max-width: 320px;
    width: 90%;
}

.activate-gift-modal .modal-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activate-gift-modal .modal-header h2 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.activate-gift-modal .modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.activate-gift-modal .modal-body {
    padding: 20px 16px;
}

.activate-gift-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
}

.activate-gift-preview .gift-emoji-xlarge {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 12px;
}

.activate-gift-preview .gift-name-large {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.activate-gift-preview .gift-duration-text {
    font-size: 13px;
    color: var(--text-muted);
}

.activate-config {
    background: var(--surface-elevated);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.activate-config label {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-input {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input::-webkit-color-swatch {
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.color-preview {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.activate-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.activate-warning svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.activate-warning span {
    font-size: 12px;
    color: #FBBF24;
    line-height: 1.4;
}

.activate-gift-modal .modal-footer {
    padding: 12px 16px 16px;
    display: flex;
    gap: 10px;
}

.activate-gift-modal .modal-footer button {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.activate-gift-modal .btn-secondary {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.activate-gift-modal .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.activate-gift-modal .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== Profile Effects ========== */

/* Animated frame effect */
.has-frame-effect {
    position: relative;
}

.has-frame-effect::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #FF6B6B, #FBBF24, #FF6B6B);
    background-size: 200% 200%;
    animation: frameGlow 2s ease-in-out infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes frameGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* VIP badge from effects */
.vip-effect-badge {
    font-size: 14px;
    vertical-align: middle;
}

/* Make gifts section clickable in own profile */
.my-profile-gifts {
    cursor: pointer;
    transition: background 0.15s ease;
}

.my-profile-gifts:active {
    background: var(--surface-elevated);
}

.my-profile-gifts .gifts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
