
/* ============================================
   ПУБЛИЧНЫЙ ПРОФИЛЬ - ПОЛНЫЙ СТИЛЬ
   ============================================ */

.profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== COVER PHOTO ===== */
.cover-container {
    position: relative;
    margin-bottom: 80px;
}

.cover-photo {
    height: 280px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.cover-container:hover .cover-overlay {
    opacity: 1;
}

.cover-edit-btn {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cover-edit-btn:hover {
    background: #007AFF;
}

.avatar-wrapper {
    position: absolute;
    bottom: -60px;
    left: 40px;
}

.avatar-large {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    position: relative;
}

.avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
    border-radius: 50%;
}

.avatar-large:hover .avatar-overlay {
    opacity: 1;
}

.avatar-edit-icon {
    color: white;
    font-size: 24px;
}

/* ===== PROFILE INFO CARD ===== */
.profile-info-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 24px 32px;
    margin-top: 70px;
    border: 1px solid rgba(255,255,255,0.5);
}

.profile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}

.profile-name-section {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-handle {
    color: #8E8E98;
    font-size: 15px;
    font-weight: normal;
}

.profile-bio {
    color: #6C6C7A;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 500px;
}

.bio-edit-btn {
    margin-top: 8px;
    background: none;
    border: none;
    color: #007AFF;
    font-size: 12px;
    cursor: pointer;
}

.bio-edit-form {
    margin-top: 12px;
    display: none;
}

.bio-textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.05);
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    margin-bottom: 12px;
    resize: vertical;
    font-family: inherit;
}

.bio-buttons {
    display: flex;
    gap: 12px;
}

.btn-save-bio, .btn-cancel-bio {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
}

.btn-save-bio {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    border: none;
}

.btn-cancel-bio {
    background: transparent;
    border: 1px solid #e5e5ea;
    color: #6C6C7A;
}

/* Badges */
.profile-badges {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
}

.badge-verified {
    background: rgba(52,199,89,0.15);
    color: #34C759;
}

.badge-top {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
}

.badge-publisher {
    background: rgba(0,122,255,0.15);
    color: #007AFF;
}

/* Stats */
.profile-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 22px;
    font-weight: 800;
    color: #007AFF;
}

.stat-label {
    font-size: 12px;
    color: #8E8E98;
}

/* Actions */
.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-subscribe {
    padding: 10px 24px;
    background: #007AFF;
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-subscribe.subscribed {
    background: #34C759;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,122,255,0.3);
}

.btn-edit-profile {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #e5e5ea;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-edit-profile:hover {
    background: rgba(0,0,0,0.03);
    transform: translateY(-2px);
}

/* Owner Controls */
.owner-controls {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(0,122,255,0.08), rgba(175,82,222,0.04));
    border-radius: 20px;
}

.owner-controls h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-action {
    padding: 8px 16px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    text-decoration: none;
    color: #1A1A2E;
    font-size: 13px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quick-action:hover {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    transform: translateY(-2px);
}

/* Contact Info */
.contact-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5ea;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6C6C7A;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.contact-item:hover {
    color: #007AFF;
}

/* Tabs */
.profile-tabs {
    display: flex;
    gap: 0;
    margin: 32px 0 24px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    padding: 6px;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 60px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #8E8E98;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
}

.tab-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== КОМПОЗИТОР ПОСТА ===== */
.post-composer {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.5);
}

.composer-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.composer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.composer-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 16px;
    color: #1A1A2E;
    resize: none;
    font-family: inherit;
    min-height: 80px;
    outline: none;
}

.composer-input:focus {
    outline: none;
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.composer-buttons {
    display: flex;
    gap: 8px;
}

.composer-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #8E8E98;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.composer-btn:hover {
    background: rgba(0,0,0,0.05);
    color: #007AFF;
}

.product-select {
    padding: 8px 16px;
    background: rgba(0,0,0,0.05);
    border: 1px solid #e5e5ea;
    border-radius: 30px;
    font-size: 13px;
    color: #1A1A2E;
}

.visibility-select {
    padding: 8px 16px;
    background: rgba(0,0,0,0.05);
    border: 1px solid #e5e5ea;
    border-radius: 30px;
    font-size: 13px;
    color: #1A1A2E;
}

.post-submit {
    padding: 8px 24px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.post-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,122,255,0.3);
}

.post-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.image-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e5ea;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-preview {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 12px;
}

/* ===== POSTS ===== */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s;
}

.post-card.boosted {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,165,0,0.05));
    border: 1px solid #FFD700;
    position: relative;
}

.post-card.boosted::before {
    content: '⚡';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    opacity: 0.5;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-info {
    flex: 1;
}

.post-author-name {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-time {
    font-size: 11px;
    color: #8E8E98;
}

.post-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(0,122,255,0.15);
    color: #007AFF;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,122,255,0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #007AFF;
    text-decoration: none;
    margin-bottom: 12px;
}

.product-link:hover {
    background: #007AFF;
    color: white;
}

.post-content {
    padding: 16px 20px;
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.post-text {
    color: #6C6C7A;
    line-height: 1.5;
    margin-bottom: 16px;
}

.post-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.post-media-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.post-media-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-media-item:hover img {
    transform: scale(1.03);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.post-tag {
    padding: 4px 12px;
    background: rgba(0,122,255,0.1);
    border-radius: 20px;
    font-size: 11px;
    color: #007AFF;
    cursor: pointer;
}

.reactions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.reaction-btn {
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
    color: #8E8E98;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.reaction-btn:hover {
    background: rgba(0,0,0,0.03);
}

.reaction-btn.active {
    background: rgba(0,122,255,0.1);
    color: #007AFF;
}

.reactions-panel {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border-radius: 60px;
    padding: 8px 16px;
    display: flex;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transform: scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 100;
    white-space: nowrap;
}

.reaction-btn:hover .reactions-panel,
.reactions-panel:hover {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.reaction-emoji {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.1s;
    padding: 4px;
}

.reaction-emoji:hover {
    transform: scale(1.2);
}

.reaction-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.reaction-stat {
    background: rgba(0,0,0,0.03);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction-stat:hover {
    background: rgba(0,122,255,0.1);
}

.reaction-stat.active {
    background: rgba(0,122,255,0.2);
    color: #007AFF;
}

.post-actions {
    display: flex;
    gap: 16px;
    padding: 12px 20px;
}

.action-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8E8E98;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(0,0,0,0.03);
}

.action-btn.bookmarked {
    color: #FFCC00;
}

.boost-btn {
    background: rgba(255,215,0,0.15);
    color: #FFD700;
}

.boost-btn:hover {
    background: #FFD700;
    color: #1a1a2e;
}

.post-actions-admin {
    padding: 8px 20px 16px;
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.delete-post-btn {
    padding: 6px 16px;
    background: rgba(255,59,48,0.15);
    border: none;
    border-radius: 30px;
    color: #FF3B30;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-post-btn:hover {
    background: #FF3B30;
    color: white;
}

/* Comments Section */
.comments-section {
    background: rgba(0,0,0,0.03);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 20px;
    display: none;
}

.comments-section.show {
    display: block;
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-time {
    font-size: 11px;
    color: #8E8E98;
    font-weight: normal;
}

.comment-text {
    font-size: 13px;
    color: #6C6C7A;
    line-height: 1.5;
    margin-bottom: 6px;
}

.comment-actions {
    display: flex;
    gap: 12px;
}

.comment-like-btn {
    background: none;
    border: none;
    font-size: 11px;
    color: #8E8E98;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-like-btn.liked {
    color: #FF3B30;
}

.comment-form {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.comment-input {
    flex: 1;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e5e5ea;
    border-radius: 30px;
    font-size: 13px;
    outline: none;
}

.comment-input:focus {
    border-color: #007AFF;
}

.comment-submit {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    border: none;
    border-radius: 30px;
    padding: 0 24px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.5);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #007AFF;
}

.product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #007AFF;
    margin-bottom: 4px;
}

.product-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #8E8E98;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.5);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: #AF52DE;
}

.portfolio-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.portfolio-info {
    padding: 16px;
}

.portfolio-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.portfolio-desc {
    font-size: 12px;
    color: #8E8E98;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skills Cloud */
.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 8px 20px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 40px;
    font-size: 13px;
    transition: all 0.2s;
}

.skill-tag:hover {
    border-color: #007AFF;
    transform: translateY(-2px);
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.review-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-2px);
    border-color: #FFCC00;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    overflow: hidden;
}

.review-stars {
    color: #FFCC00;
    font-size: 12px;
    margin-top: 4px;
}

.review-text {
    font-size: 13px;
    line-height: 1.5;
    color: #6C6C7A;
    margin-bottom: 12px;
}

.review-product {
    font-size: 11px;
    color: #8E8E98;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-radius: 28px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(30px);
    border-radius: 28px;
    max-width: 500px;
    width: 90%;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-top: 1px solid #e5e5ea;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #8E8E98;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e5ea;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 16px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Toast */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 24px;
    background: #1A1A2E;
    color: white;
    border-radius: 60px;
    z-index: 10002;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-message.success { background: #34C759; }
.toast-message.error { background: #FF3B30; }
.toast-message.info { background: #007AFF; }

/* Responsive */
@media (max-width: 768px) {
    .profile-page {
        padding: 0 16px;
    }
    
    .cover-photo {
        height: 150px;
    }
    
    .avatar-wrapper {
        left: 20px;
        bottom: -40px;
    }
    
    .avatar-large {
        width: 90px;
        height: 90px;
        font-size: 32px;
    }
    
    .profile-info-card {
        margin-top: 50px;
        padding: 20px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .profile-header-row {
        flex-direction: column;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .profile-actions {
        justify-content: center;
        width: 100%;
    }
    
    .profile-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .composer-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .composer-buttons {
        justify-content: center;
    }
    
    .products-grid,
    .portfolio-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .post-media {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

.avatar-remove-btn {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 34px;
    height: 34px;
    background: rgba(255,59,48,0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.avatar-remove-btn:hover {
    transform: scale(1.05);
    background: #FF3B30;
}

.cover-remove-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.cover-remove-btn:hover {
    background: #FF3B30;
    transform: scale(1.05);
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* ============================================
   МОДАЛЬНОЕ ОКНО БУСТЕРОВ (УЛУЧШЕННОЕ)
   ============================================ */

#boostModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#boostModal.active {
    display: flex;
    opacity: 1;
}

#boostModal .modal-content {
    background: rgb(255 255 255 / 97%);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#boostModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: inherit;
    backdrop-filter: blur(30px);
    z-index: 10;
}

#boostModal .modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

#boostModal .modal-header h3 i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #FFD700;
}

#boostModal .modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary, #8E8E98);
    font-size: 20px;
    transition: all 0.2s ease;
}

#boostModal .modal-close:hover {
    background: rgba(255, 59, 48, 0.2);
    color: #FF3B30;
    transform: rotate(90deg);
}

#boostModal .modal-body {
    padding: 24px 28px;
}

#boostPostTitle {
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid #FFD700;
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--text-primary);
    word-break: break-word;
}

/* Сетка бустеров - несколько рядов */
#boostersList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 8px;
}

/* Стилизация скроллбара */
#boostersList::-webkit-scrollbar {
    width: 6px;
}

#boostersList::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#boostersList::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 10px;
}

#boostersList::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.8);
}

/* Карточка бустера */
.booster-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.booster-option:hover {
    transform: translateY(-2px);
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.booster-option > div:first-child {
    flex: 1;
}

.booster-option div:first-child div:first-child {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.booster-option div:first-child div:nth-child(2) {
    font-size: 12px;
    color: var(--text-tertiary, #8E8E98);
    margin-bottom: 8px;
    line-height: 1.4;
}

.booster-option div:first-child div:last-child {
    font-size: 11px;
    color: #FF9500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.booster-option > div:last-child {
    text-align: right;
    margin-left: 16px;
}

.booster-option div:last-child div:first-child {
    font-weight: 800;
    font-size: 18px;
    color: #FFD700;
    margin-bottom: 8px;
    white-space: nowrap;
}

.booster-option .quick-action {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.booster-option .quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.booster-option .quick-action:active {
    transform: translateY(0);
}

#boostModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 28px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: inherit;
}

#boostModal .btn-cancel-bio {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 40px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

#boostModal .btn-cancel-bio:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FF3B30;
}

.info-hint {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 16px;
}

.info-hint i {
    color: #007AFF;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    #boostModal .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        animation: modalSlideUp 0.3s ease;
    }
    
    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    #boostModal .modal-header {
        padding: 16px 20px;
    }
    
    #boostModal .modal-header h3 {
        font-size: 18px;
    }
    
    #boostModal .modal-body {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
    }
    
    #boostersList {
        grid-template-columns: 1fr;
        gap: 12px;
        max-height: calc(100vh - 200px);
    }
    
    .booster-option {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .booster-option > div:last-child {
        text-align: center;
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
    }
    
    .booster-option > div:last-child div:first-child {
        display: inline-block;
        margin-bottom: 8px;
    }
    
    .booster-option .quick-action {
        width: 100%;
        padding: 10px;
    }
    
    #boostModal .modal-footer {
        padding: 16px 20px;
        position: sticky;
        bottom: 0;
        background: inherit;
    }
    
    .info-hint {
        font-size: 11px;
        flex-wrap: wrap;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* Для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    #boostModal .modal-content {
        max-width: 90%;
        width: 90%;
    }
    
    #boostersList {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* Индикатор загрузки */
.booster-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-tertiary);
}

.booster-loading i {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Стили для списка бустеров в инвентаре */
.boosters-inventory-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.booster-inventory-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.booster-inventory-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.booster-icon {
    font-size: 40px;
}

.booster-info {
    flex: 1;
}

.booster-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.booster-desc {
    font-size: 12px;
    color: var(--text-tertiary, #8E8E98);
    margin-bottom: 8px;
}

.booster-stats {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: #FF9500;
}

.booster-stats i {
    margin-right: 4px;
}

.btn-apply-booster {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-apply-booster:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn-buy-more {
    background: rgba(0, 122, 255, 0.15);
    border: 1px solid rgba(0, 122, 255, 0.3);
    padding: 8px 20px;
    border-radius: 40px;
    color: #007AFF;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-buy-more:hover {
    background: #007AFF;
    color: white;
}

@media (max-width: 768px) {
    .booster-inventory-item {
        flex-direction: column;
        text-align: center;
    }
    
    .booster-stats {
        justify-content: center;
    }
    
    .btn-apply-booster {
        width: 100%;
    }
}