/* ===== ПРОФИЛЬ ===== */
.profile-container {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-purple), #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
    margin-bottom: 12px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.profile-status-text {
    font-size: 14px;
    color: var(--neon-green);
    margin-top: 4px;
}

.profile-blocks {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}

.profile-block {
    flex: 1 1 0;
    min-width: 0;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 14px 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
    overflow: hidden;
}
.profile-block:active {
    transform: scale(0.96);
}

.profile-block-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.profile-block-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

.profile-block-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-block-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-block-credits {
    border-left: 3px solid var(--neon-green);
}
.profile-block-referrals {
    border-left: 3px solid var(--neon-purple);
}
.profile-block-code {
    border-left: 3px solid #fbbf24;
}

.contacts-btn-wrapper {
    width: 100%;
    padding: 12px 0 8px 0;
    display: flex;
    justify-content: center;
}

.contacts-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
    color: #fff;
    border: none;
    border-radius: 60px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
    width: auto;
    min-width: 180px;
    justify-content: center;
}
.contacts-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
}
.contacts-btn:active {
    transform: scale(0.96);
}
.contacts-btn .material-icons {
    font-size: 24px;
}

.profile-details {
    width: 100%;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 4px 16px;
}

.profile-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}
.profile-detail-item:last-child {
    border-bottom: none;
}
.profile-detail-label {
    color: #8899b0;
    font-size: 14px;
}
.profile-detail-value {
    font-weight: 600;
    font-size: 15px;
}

/* ===== БЛОК ПРОДУКТОВ В ПРОФИЛЕ ===== */
.profile-products {
    margin-top: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-glow);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.profile-products-title {
    font-size: 16px;
    font-weight: 700;
    color: #E8EDF5;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.profile-products-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-purple) transparent;
}
.profile-products-list::-webkit-scrollbar {
    width: 4px;
}
.profile-products-list::-webkit-scrollbar-track {
    background: transparent;
}
.profile-products-list::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 4px;
}

.profile-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 11, 20, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.25s ease;
    gap: 8px;
}

.profile-product-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(7, 11, 20, 0.6);
}

.profile-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.profile-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #E8EDF5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-product-category {
    font-size: 11px;
    color: #8896AB;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-product-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.profile-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--neon-green);
    white-space: nowrap;
}

.profile-product-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.profile-products-empty {
    text-align: center;
    color: #64748B;
    font-size: 14px;
    padding: 30px 0;
}